Hello everyone, first of all I have to admit that I have just started with coding and this is my first dAPP, so I am following a Moralis template for a Gated NFT Website.
Everything was going well as I tested the app using localhost, however as soon as I deployed the dAPP on Vercel, the âconnect walletâ button stops working properly it just opens metamask to connect, but it doesnât open the âsignature requestâ window nor does it redirect to the user page.
While checking the logs in Vercel I noticed that the following error appeared:
[POST] /api/auth/request-message
01:53:11:83
RequestId: 89adb38d-5c92-421d-b461-4f789caa7491 Error: Runtime exited with error: exit status 1
Runtime.ExitError
2022-09-22T04:53:12.399Z deb61516-e3ad-4035-8443-ac4bd05199e8 ERROR TypeError: Converting circular structure to JSON
--> starting at object with constructor 'ClientRequest'
| property 'socket' -> object with constructor 'TLSSocket'
--- property '_httpMessage' closes the circle
at JSON.stringify (<anonymous>)
at sendJson (/var/task/node_modules/next/dist/server/api-utils/node.js:321:19)
at ServerResponse.apiRes.json (/var/task/node_modules/next/dist/server/api-utils/node.js:168:31)
at handler (/var/task/.next/server/pages/api/auth/request-message.js:45:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.apiResolver (/var/task/node_modules/next/dist/server/api-utils/node.js:184:9)
at async NextNodeServer.runApi (/var/task/node_modules/next/dist/server/next-server.js:403:9)
at async Object.fn (/var/task/node_modules/next/dist/server/base-server.js:493:37)
at async Router.execute (/var/task/node_modules/next/dist/server/router.js:222:36)
at async NextNodeServer.run (/var/task/node_modules/next/dist/server/base-server.js:612:29)
2022-09-22T04:53:12.399Z deb61516-e3ad-4035-8443-ac4bd05199e8 ERROR TypeError: Converting circular structure to JSON
--> starting at object with constructor 'ClientRequest'
| property 'socket' -> object with constructor 'TLSSocket'
--- property '_httpMessage' closes the circle
at JSON.stringify (<anonymous>)
at sendJson (/var/task/node_modules/next/dist/server/api-utils/node.js:321:19)
at ServerResponse.apiRes.json (/var/task/node_modules/next/dist/server/api-utils/node.js:168:31)
at handler (/var/task/.next/server/pages/api/auth/request-message.js:45:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.apiResolver (/var/task/node_modules/next/dist/server/api-utils/node.js:184:9)
at async NextNodeServer.runApi (/var/task/node_modules/next/dist/server/next-server.js:403:9)
at async Object.fn (/var/task/node_modules/next/dist/server/base-server.js:493:37)
at async Router.execute (/var/task/node_modules/next/dist/server/router.js:222:36)
at async NextNodeServer.run (/var/task/node_modules/next/dist/server/base-server.js:612:29)
RequestId: deb61516-e3ad-4035-8443-ac4bd05199e8 Error: Runtime exited with error: exit status 1
Runtime.ExitError
Is there any way to solve this problem or else disable the âsignature requestâ in a way that makes my dAPP work?
Thanks a lot!