youscript
09/18/2023, 1:36 PMrp_st
09/18/2023, 1:37 PMyouscript
09/18/2023, 1:37 PMyouscript
09/18/2023, 2:33 PMyouscript
09/18/2023, 2:39 PMporcellus
09/18/2023, 3:37 PMyouscript
09/18/2023, 5:00 PMyouscript
09/18/2023, 5:01 PMporcellus
09/18/2023, 6:17 PMyouscript
09/18/2023, 6:20 PMyouscript
09/19/2023, 2:24 AMporcellus
09/19/2023, 7:34 AMporcellus
09/19/2023, 7:38 AMporcellus
09/19/2023, 8:02 AMyouscript
09/19/2023, 9:07 AMyouscript
09/19/2023, 9:16 AMyouscript
09/19/2023, 9:16 AMyouscript
09/19/2023, 9:17 AMporcellus
09/19/2023, 9:38 AMporcellus
09/19/2023, 9:43 AMporcellus
09/19/2023, 9:44 AMyouscript
09/19/2023, 11:01 AMyouscript
09/19/2023, 11:02 AMyouscript
09/19/2023, 11:15 AMyouscript
09/19/2023, 11:17 AMyouscript
09/19/2023, 11:19 AMyouscript
09/19/2023, 11:31 AMporcellus
09/19/2023, 12:53 PMporcellus
09/19/2023, 12:54 PMporcellus
09/19/2023, 1:09 PMyouscript
09/19/2023, 1:19 PMyouscript
09/19/2023, 1:20 PMporcellus
09/19/2023, 2:03 PMDEBUG
env var to com.supertokens
porcellus
09/19/2023, 2:03 PMDEBUG=com.supertokens npm run dev
youscript
09/19/2023, 2:14 PMyouscript
09/19/2023, 2:22 PMyouscript
09/19/2023, 2:23 PMporcellus
09/19/2023, 2:28 PMyouscript
09/19/2023, 2:28 PMporcellus
09/19/2023, 3:08 PMyouscript
09/19/2023, 3:23 PMporcellus
09/19/2023, 9:14 PMyouscript
09/20/2023, 1:05 AMyouscript
09/20/2023, 11:45 AMyouscript
09/20/2023, 11:45 AMrp_st
09/20/2023, 12:00 PMyouscript
09/20/2023, 2:57 PMporcellus
09/20/2023, 4:42 PMporcellus
09/20/2023, 4:45 PMxhr2
would be a solution. One issue is that I still can't seem to reproduce the issue. It's a bit confusing: you were saying it didn't matter if you are logged in or not, do you have any further clues on how to get this error?youscript
09/21/2023, 9:18 AMyouscript
09/21/2023, 9:26 AMyouscript
09/21/2023, 9:44 AMyouscript
09/21/2023, 11:00 AMyouscript
09/21/2023, 11:08 AMyouscript
09/21/2023, 3:44 PMporcellus
09/21/2023, 8:43 PMXMLHTTPREQUEST.onloadend
. That'd be very strange, since earlier the error was about XMLHttpRequest not defined. What is pointing you there?
- In the screenshots you posted the errors definitely seem to be happening on the backend (the logs in the first screenshot + updateSessionData
returning a 500). Can you check what is the response body of updateSessionData
?
- in the repro you posted updateSessionData
is basically empty - so I guess it must be the middleware throwing. Does this endpoint work when you are not getting this error?
- Not initializing could be an issue, but that'd show up as a different error I think - anyway, something you could look into. Maybe add some kind of logging where the initialization happens and check if it is skipped before you start getting the error.
One thing you could try is editing the file the error stack is pointing to (the ponyfill in your node_modules) and try to log a full error stack from there. I'll try and look at this again tomorrow, maybe I'll have better luck reproducing this.youscript
09/22/2023, 1:13 AMyouscript
09/22/2023, 1:13 AMyouscript
09/22/2023, 1:21 AMyouscript
09/22/2023, 10:28 AMyouscript
09/22/2023, 10:43 AMporcellus
09/22/2023, 3:02 PMporcellus
09/22/2023, 3:05 PMyouscript
09/22/2023, 3:06 PMyouscript
09/23/2023, 11:29 AMyouscript
09/23/2023, 11:30 AMyouscript
09/24/2023, 4:35 AMporcellus
09/25/2023, 2:00 PMporcellus
09/25/2023, 2:00 PMporcellus
09/25/2023, 2:01 PMnpm i supertokens-node@supertokens/supertokens-node#feat/edge_function_compatibility
porcellus
09/25/2023, 2:01 PMporcellus
09/25/2023, 2:02 PMporcellus
09/25/2023, 2:02 PMyouscript
09/26/2023, 11:27 AMrp_st
09/26/2023, 11:28 AMrp_st
09/26/2023, 11:28 AMyouscript
09/26/2023, 11:29 AMrp_st
09/26/2023, 11:29 AMyouscript
09/26/2023, 11:30 AMrp_st
09/26/2023, 11:31 AMporcellus
09/26/2023, 11:33 AMrp_st
09/26/2023, 11:34 AMporcellus
09/26/2023, 11:35 AMyouscript
09/26/2023, 11:37 AMporcellus
09/26/2023, 11:49 AMnpm i supertokens-node@supertokens/supertokens-node#backwards/edge_compatibility_check
youscript
09/26/2023, 11:51 AMyouscript
09/26/2023, 11:51 AMyouscript
09/26/2023, 12:14 PMporcellus
09/26/2023, 1:20 PMyouscript
09/26/2023, 1:51 PMporcellus
09/26/2023, 1:57 PMrp_st
09/26/2023, 1:58 PMyouscript
09/26/2023, 2:00 PMyouscript
09/26/2023, 4:42 PMrp_st
09/26/2023, 4:43 PMyouscript
09/26/2023, 4:49 PM