Hi. How can I catch errors in SuperTokens.init on ...
# support-questions-legacy
a
Hi. How can I catch errors in SuperTokens.init on the frontend. Assuming I get a 500 Internal Server Error because the supertokens core server cannot be reached
r
Are you using the supertokens-auth-react SDK?
a
Yes please
r
hmm. At the moment, such errors just display a somethign went wrong error and thats all
do you want to change the message or do something else?
a
At the moment my react app just goes blank. i would like to display a notification or redirect to a page
r
oh really.. it going blank is strange. What does the browser console show?
a
XHR POSThttp://localhost:3000/session/refresh [HTTP/1.1 500 Internal Server Error 599ms]
Btw I intentionally stopped the server core to see how I would handle such errors
r
Can you open an issue about this? This seems like a bug.
a
Alright. Thanks
r
thanks
r
thanks