You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using future/auth with SSTv2, on the callbacks, the site/route crashes with a timeout.
It seems like SST is trying to initialise adapters that are not in use, and due to the missing IDs and URLs, the connection times out, which in turn crashes the route. Refreshing the page 3-4 times solves it, but this is obviously not a solution that can go in a production build.
Attached is a log from an SSTv2 project that uses future/auth with only the codeAdapter and nothing else set up:
ERROR Unhandled Promise Rejection
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "RPError: outgoing request timed out after 3500ms",
"reason": {
"errorType": "RPError",
"errorMessage": "outgoing request timed out after 3500ms",
"name": "RPError",
"stack": [
"RPError: outgoing request timed out after 3500ms",
" at file:///var/task/frontend/weave/portal/dist/server/entry.mjs:56335:17",
" at runNextTicks (node:internal/process/task_queues:60:5)",
" at listOnTimeout (node:internal/timers:538:9)",
" at process.processTimers (node:internal/timers:512:7)",
" at async Issuer.discover (file:///var/task/frontend/weave/portal/dist/server/entry.mjs:59171:27)",
" at async node_modules/.pnpm/[email protected]_@[email protected]/node_modules/sst/node/future/auth/adapter/google.js (file:///var/task/frontend/weave/portal/dist/server/entry.mjs:59444:14)"
]
},
"promise": {},
"stack": [
"Runtime.UnhandledPromiseRejection: RPError: outgoing request timed out after 3500ms",
" at process.<anonymous> (file:///var/runtime/index.mjs:1276:17)",
" at process.emit (node:events:517:28)",
" at emit (node:internal/process/promises:149:20)",
" at processPromiseRejections (node:internal/process/promises:283:27)",
" at processTicksAndRejections (node:internal/process/task_queues:96:32)",
" at runNextTicks (node:internal/process/task_queues:64:3)",
" at listOnTimeout (node:internal/timers:538:9)",
" at process.processTimers (node:internal/timers:512:7)"
]
}
The adapter that's crashing the route is always different. After adding Google to the list of available adapters, the Apple adapter is the one that's crashing instead.
The text was updated successfully, but these errors were encountered:
When using future/auth with SSTv2, on the callbacks, the site/route crashes with a timeout.
It seems like SST is trying to initialise adapters that are not in use, and due to the missing IDs and URLs, the connection times out, which in turn crashes the route. Refreshing the page 3-4 times solves it, but this is obviously not a solution that can go in a production build.
Attached is a log from an SSTv2 project that uses
future/auth
with only thecodeAdapter
and nothing else set up:The adapter that's crashing the route is always different. After adding Google to the list of available adapters, the Apple adapter is the one that's crashing instead.
The text was updated successfully, but these errors were encountered: