Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
11 replies
aditya

Next Auth Session timing out

I just created a new T3 project with Drizzle, Next Auth and Supabase. But while working the session keeps timing out and I have to stop the dev server and sign in again for it to work

Error logs:
[next-auth][error][adapter_error_getUserByAccount] 
https://next-auth.js.org/errors#adapter_error_getuserbyaccount write CONNECT_TIMEOUT aws-0-ap-south-1.pooler.supabase.com:5432 {      
  message: 'write CONNECT_TIMEOUT aws-0-ap-south-1.pooler.supabase.com:5432',
  stack: 'Error: write CONNECT_TIMEOUT aws-0-ap-south-1.pooler.supabase.com:5432\n' +
    '    at connectTimedOut (webpack-internal:///(rsc)/./node_modules/.pnpm/postgres@3.4.3/node_modules/postgres/src/connection.js:181:64)\n' +
    '    at Timeout.done [as _onTimeout] (webpack-internal:///(rsc)/./node_modules/.pnpm/postgres@3.4.3/node_modules/postgres/src/connection.js:725:12)\n' +
    '    at listOnTimeout (node:internal/timers:566:11)\n' +
    '    at process.processTimers (node:internal/timers:507:7)',
  name: 'Error'
}
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error write CONNECT_TIMEOUT aws-0-ap-south-1.pooler.supabase.com:5432 Error: write CONNECT_TIMEOUT aws-0-ap-south-1.pooler.supabase.com:5432
    at connectTimedOut (webpack-internal:///(rsc)/./node_modules/.pnpm/postgres@3.4.3/node_modules/postgres/src/connection.js:181:64) 
    at Timeout.done [as _onTimeout] (webpack-internal:///(rsc)/./node_modules/.pnpm/postgres@3.4.3/node_modules/postgres/src/connection.js:725:12)
    at listOnTimeout (node:internal/timers:566:11)
    at process.processTimers (node:internal/timers:507:7) {
  name: 'GetUserByAccountError',
  code: 'CONNECT_TIMEOUT'
}
Was this page helpful?