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
On the payload admin panel, I have several errors.
Here, I get 401 Unauthorized error about post requests to the payload's default endpoints.
As you can see, the token is included and it's valid which means there's req.user.
But on the backend, I got these error messages:
POST /api/payload-preferences/users-list 401
ERROR: UnauthorizedError: Unauthorized, you must be logged in to make this request.
POST /api/form-state 401
ERROR: There was an error building form state
One detailed of them is like following:
UnauthorizedError
[01:58:34] ERROR: UnauthorizedError: Unauthorized, you must be logged in to make this request.
at update (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected][email protected][email protected][email protected]_nqrfhptuu7w2jhpr2a52ldkhbe/node_modules/payload/dist/preferences/operations/update.js:10:15)
at Object.updateHandler [as handler] (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected][email protected][email protected][email protected]_nqrfhptuu7w2jhpr2a52ldkhbe/node_modules/payload/dist/preferences/requestHandlers/update.js:23:84)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleCustomEndpoints (webpack-internal:///(rsc)/./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]_re_teoz65sbecf336jcq6qvejlca4/node_modules/@payloadcms/next/dist/routes/rest/index.js:198:19)
at async eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]_re_teoz65sbecf336jcq6qvejlca4/node_modules/@payloadcms/next/dist/routes/rest/index.js:478:38)
at async D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:126975
at async AppRouteRouteModule.execute (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:98611)
at async AppRouteRouteModule.handle (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:128587)
at async doRender (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:1464:42)
at async responseGenerator (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:1798:28)
at async DevServer.renderToResponseWithComponentsImpl (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:1842:28)
at async DevServer.renderPageComponent (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:2215:24)
at async DevServer.renderToResponseImpl (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:2253:32)
at async DevServer.pipeImpl (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:967:25)
at async NextNodeServer.handleCatchallRenderRequest (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\next-server.js:281:17)
at async DevServer.handleRequestImpl (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\base-server.js:860:17)
at async D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\dev\next-dev-server.js:377:20
at async Span.traceAsyncFn (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\trace\trace.js:157:20)
at async DevServer.handleRequest (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\dev\next-dev-server.js:374:24)
at async invokeRender (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\lib\router-server.js:183:21)
at async handleRequest (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\lib\router-server.js:360:24)
at async requestHandlerImpl (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\lib\router-server.js:384:13)
at async Server.requestListener (D:\_Workspace\Development\Web\PayloadCMS\playcv\node_modules\.pnpm\[email protected][email protected][email protected]_x55oex4qbzquceggzfwiekr2om\node_modules\next\dist\server\lib\start-server.js:142:13)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On the payload admin panel, I have several errors.
Here, I get 401 Unauthorized error about post requests to the payload's default endpoints.
As you can see, the token is included and it's valid which means there's req.user.
But on the backend, I got these error messages:
POST /api/payload-preferences/users-list 401
ERROR: UnauthorizedError: Unauthorized, you must be logged in to make this request.
POST /api/form-state 401
ERROR: There was an error building form state
One detailed of them is like following:
UnauthorizedError
I really need help, thank you.
Here's config of my users collection.
Users collection config:
Beta Was this translation helpful? Give feedback.
All reactions