Next 13.4 Error: NEXT_REDIRECT in API routes
signOut invoked
Error: NEXT_REDIRECT
at getRedirectError (webpack-internal:///(action-browser)/./node_modules/next/dist/client/components/redirect.js:49:19)
at redirect (webpack-internal:///(action-browser)/./node_modules/next/dist/client/components/redirect.js:60:11)
at signOut (webpack-internal:///(action-browser)/./node_modules/next-auth/lib/actions.js:68:73)
at async logoutAction (webpack-internal:///(action-browser)/./src/actions/logout.ts:17:9)
at async /Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:39:406
at async t2 (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:38:6412)
at async rS (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:41:1369)
at async doRender (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:1378:30)
at async cacheEntry.responseCache.get.routeKind (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:1539:28)
at async DevServer.renderToResponseWithComponentsImpl (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:1447:28)
at async DevServer.renderPageComponent (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:1844:24)
at async DevServer.renderToResponseImpl (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:1882:32)
at async DevServer.pipeImpl (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:895:25)
at async NextNodeServer.handleCatchallRenderRequest (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/next-server.js:269:17)
at async DevServer.handleRequestImpl (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/base-server.js:791:17)
at async /Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/dev/next-dev-server.js:331:20
at async Span.traceAsyncFn (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/trace/trace.js:151:20)
at async DevServer.handleRequest (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/dev/next-dev-server.js:328:24)
at async invokeRender (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/lib/router-server.js:174:21)
at async handleRequest (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/lib/router-server.js:353:24)
at async requestHandlerImpl (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/lib/router-server.js:377:13)
at async Server.requestListener (/Users/rohyeongseo/nutri-sync-admin/node_modules/next/dist/server/lib/start-server.js:140:13) {
digest: 'NEXT_REDIRECT;replace;<http://localhost:3001/;303;'>,
mutableCookies: p {
_parsed: Map(9) {
'_ga' => [Object],
'_ga_KVRM7FMSBV' => [Object],
'next-auth.session-token' => [Object],
'__client_uat' => [Object],
'authjs.csrf-token' => [Object],
'__clerk_db_jwt' => [Object],
'__session' => [Object],
'authjs.callback-url' => [Object],
'authjs.session-token' => [Object]
},
_headers: HeadersList {
cookies: [Array],
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
}
}
}
jwt callback invoked
session callback invoked
✓ Compiled in 796ms (2270 modules)
✓ Compiled in 450ms (2270 modules)
authorize invoked
sp-sc-operators-privilege-ro-v1 ?,?,?,?,?,? [
'0.0.0.0',
0,
'[email protected]',
'aaaa1111!!',
'N1GdSaCNhoE',
'2024-04-15 15:25:12'
]
operatorsPrivilegeRepository result [
{
operator_id: 1,
operator_role_name: 'supervisor',
is_aimeelabs: <Buffer 01>,
site_id: null,
wrong_passphrase_count: 0
}
]
sp-sc-operators-profile-ro-v1 ?,? [ 1, '2024-04-15 15:25:12' ]
sp-sc-operator_menus-ra-v1 ?,?,? [ 1, 0, '2024-04-15 15:25:12' ]
jwt callback invoked
jwt callback invoked
session callback invoked
jwt callback invoked
session callback invoked
jwt callback invoked
session callback invoked
jwt callback invoked
session callback invoked
jwt callback invoked
session callback invoked
jwt callback invoked
session callback invoked