Unknown error in MoralisNextAuthProvider

Hello,
I am using the Ethereum Boilerplate and when I click on the “connect wallet” button, the Signature request from Metamask appears, I am signing and then nothing, I still see the same “connect wallet” button.

In my command line, I see the following error:

Moralis[nextjs]: Unknown error in MoralisNextAuthProvider authorize [C0006] Request failed, Bad Request(400): Invalid message: {“success”:false,“state”:103,“length”:252,“matched”:0,“maxMatched”:5,“maxTreeDepth”:15,“nodeHits”:184,“inputLength”:252,“subBegin”:0,“subEnd”:252,“subLength”:252} {
error: MoralisError [Moralis SDK Core Error]: [C0006] Request failed, Bad Request(400): Invalid message: {“success”:false,“state”:103,“length”:252,“matched”:0,“maxMatched”:5,“maxTreeDepth”:15,“nodeHits”:184,“inputLength”:252,“subBegin”:0,“subEnd”:252,“subLength”:252}
at RequestController.makeError (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/lib/cjs/index.cjs:1206:20)
at RequestController. (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/lib/cjs/index.cjs:1187:38)
at step (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/lib/cjs/index.cjs:81:23)
at Object.throw (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/lib/cjs/index.cjs:62:53)
at rejected (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/lib/cjs/index.cjs:53:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
isMoralisError: true,
code: ‘C0006’,
details: { status: 400, response: [Object] },
[cause]: AxiosError: Request failed with status code 400
at settle (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/node_modules/axios/dist/node/axios.cjs:1902:12)
at IncomingMessage.handleStreamEnd (/Users/cyril/Documents/dapps/CrowdFundingWeb3FrontEnd2/node_modules/@moralisweb3/common-core/node_modules/axios/dist/node/axios.cjs:2954:11)
at IncomingMessage.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: ‘ERR_BAD_REQUEST’,
config: [Object],
request: [ClientRequest],
response: [Object]
}
}

Here is my package.json:

{
“name”: “TestApp”,
“version”: “2.0.0”,
“private”: true,
“homepage”: “http://localhost:3000”,
“scripts”: {
“dev”: “next dev”,
“build”: “next build”,
“start”: “next start”,
“lint”: “next lint”,
“prepare”: “husky install”,
“deploypage”: “gh-pages -d .next”
},
“dependencies”: {
@chakra-ui/icons”: “^2.0.8”,
@chakra-ui/react”: “^2.4.3”,
@chakra-ui/spinner”: “^2.0.11”,
@emotion/react”: “^11”,
@emotion/styled”: “^11”,
@hookform/resolvers”: “^2.9.10”,
@moralisweb3/next”: “^2.9.0”,
@tabler/icons”: “^2.7.0”,
@web3uikit/core”: “^0.1.5”,
@web3uikit/icons”: “^0.1.5”,
“axios”: “^0.27.2”,
“chakra-ui-steps”: “^1.8.0”,
“eslint-config-next”: “^13.0.6”,
“ethers”: “^5.6.9”,
“framer-motion”: “^6”,
“js-ipfs-fetch”: “^4.2.3”,
“moment”: “^2.29.4”,
“moralis”: “^2.9.0”,
“next”: “^13.0.6”,
“next-auth”: “^4.18.6”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-hook-form”: “^7.39.1”,
“react-icons”: “^4.7.1”,
“use-debounce”: “^9.0.2”,
“wagmi”: “^0.9.2”,
“yup”: “^0.32.11”
},
“devDependencies”: {
@moralisweb3/eslint-config”: “^1.0.1”,
@types/node”: “18.7.6”,
@types/react”: “18.0.17”,
@types/react-dom”: “18.0.6”,
@typescript-eslint/eslint-plugin”: “^5.33.1”,
@typescript-eslint/parser”: “^5.33.1”,
“eslint”: “8.22.0”,
“eslint-plugin-etc”: “^2.0.2”,
“gh-pages”: “^4.0.0”,
“husky”: “^8.0.1”,
“lint-staged”: “^13.0.3”,
“prettier”: “2.7.1”,
“typescript”: “4.7.4”
},
“lint-staged”: {
“**/*”: “prettier --write --ignore-unknown”
}
}

Thanks for reporting, we will check the repo

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.