https://supertokens.com/ logo
hanging issue
k

kartojal

05/10/2023, 9:49 AM
hey! we are using the next.js template but hosting the "frontend supertoken api" in a different Express.js API. Everything at localhost worked properly but when we moved into production domains we can't login anymore. The POST call to /[base-path]/signinup/code hangs with a timeout, but if we try any other GET calls like verify email it works and reachs our API. Next.js is at domain.com and API at domain.com/api/auth/.
r

rp

05/10/2023, 11:27 AM
hey @kartojal - so it's just that one API - which is creating the passwordless code that's hanging? If yes, have you added any override to that API? Or added a way to create a custom passwordless code?
k

kartojal

05/10/2023, 1:16 PM
sorry at the end the error was that quotes (") was getting escaped at the .env file, resulting in the connection uri was wrong formatted not sure if we didn't correctly set the error handler, but this caused like a timeout and no error logs about malformed URL, was hard to debug until we noticed it
r

rp

05/10/2023, 1:31 PM
Hmmm. Okay
You should have gotten a core not available error.