atoyebs
06/15/2022, 10:54 AMatoyebs
06/15/2022, 10:54 AM[
{
"id": "registerAs",
"value": "Job Seeker"
},
{
"id": "firstname",
"value": "Inioluwa"
},
{
"id": "lastname",
"value": "Atoyebi"
},
{
"id": "companyname",
"value": ""
},
{
"id": "email",
"value": "iatoyebi.3134@gmail.com"
},
{
"id": "password",
"value": "7a9Bc6hE$@"
}
]
But I get this response on the frontend:
{
body: ReadableStream
bodyUsed: false
headers: Headers {}
ok: false
redirected: false
status: 500
statusText: "Internal Server Error"
type: "basic"
url: "http://localhost:3000/api/auth/signup"
}
Supertokens core is definitely running because when I go to http://localhost:3567/hello
I see hello on my browser, and when I go to http://localhost:3567/apiversion
i see this:
{
"versions": [
"2.14",
"2.13",
"2.12",
"2.7",
"2.11",
"2.8",
"2.10",
"2.9"
]
}
atoyebs
06/15/2022, 10:56 AMError: SuperTokens core threw an error for a GET request to path: '/apiversion' with status code: 404 and message: <!DOCTYPE html><html><head><style data-next-hide-fouc="true">body{display:none}</style><noscript data-next-hide-fouc="true"><style>body{display:block}</style></noscript><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills.js?ts=1655289344944"></script><script src="/_next/static/chunks/webpack.js?ts=1655289344944" defer=""></script><script src="/_next/static/chunks/main.js?ts=1655289344944" defer=""></script><script src="/_next/static/chunks/pages/_app.js?ts=1655289344944" defer=""></script><script src="/_next/static/chunks/pages/_error.js?ts=1655289344944" defer=""></script><script src="/_next/static/development/_buildManifest.js?ts=1655289344944" defer=""></script><script src="/_next/static/development/_ssgManifest.js?ts=1655289344944" defer=""></script><script src="/_next/static/development/_middlewareManifest.js?ts=1655289344944" defer=""></script><noscript id="__next_css__DO_NOT_USE__"></noscript></head><body><div id="__next"><!--$--><div class="flex flex-col justify-center items-center w-screen h-screen"><img class="animate-bounce" style="width:15rem" src="/assets/logos/scalein-logo.png"/></div><!--/$--></div><script src="/_next/static/chunks/react-refresh.js?ts=1655289344944"></script><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
But I can confirm that the formFields are reaching the api/auth
endpoint because I printed out the body of the request and it matches what was sent.
Any help you can give will be greatly appreciated!
Thanksrp_st
06/15/2022, 11:55 AMrp_st
06/15/2022, 11:56 AMatoyebs
06/15/2022, 1:30 PMrp_st
06/15/2022, 1:30 PMatoyebs
06/15/2022, 7:18 PMrp_st
06/15/2022, 7:20 PMrp_st
06/15/2022, 7:20 PMatoyebs
06/15/2022, 7:24 PM