Hi, I have a problem that I tried my best to fix in all ways possible.
I get a "You are not allowed to perform this action." on every document creation on all collections.
- I tried removing node_modules, pnpm store prune reinstall
- changing to version 3.28.1, 3.27.0, 3.26.0
- pnpx payload migrate:fresh, retry with fresh first user
Here's the shortened stack trace server error :
Request cookies: payload-token=REDACTED => middleware shows token in request
Request path: /admin/collections/media/create
{
"level": 50,
"time": 1742071317956,
"pid": 3134,
"hostname": "podmax",
"name": "payload",
"err": {
"type": "Error",
"message": "Unauthorized",
"stack": "Error: Unauthorized
at buildFormStateHandler (webpack-internal:///(rsc)/./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_react-dom@1_1d4e4886e2c7f189dd15bb7272ea78a8/node_modules/@payloadcms/ui/dist/utilities/buildFormState.js:53:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /root/podmax/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:438:2357
at async handleAction
[...]
"msg": "There was an error building form state"
}
after this error the request is replied with 403. in file upload, the error (see image) is showed as soon as file is in dropzone.
it works with :
curl 'https://redacted/api/media?depth=0&fallback-locale=null' -X POST -H 'Cookie: payload-token=redacted' -F '_payload={"alt": "My image description"}' -F 'file=./fichiers.png'
so the problem happens only when I'm using the web interface.
the next dev server is on alpine if that's relevant.
can someone help me ๐ ? this is a very worrying problem, happens just as I am testing my production server for mondays deadline... I'll do whatever you want
please ๐ญ