Failed to find Server Action
Answered
Valentine ant posted this in #help-forum
Valentine antOP
Error: Failed to find Server Action "x". This request might be from an older or newer deployment.
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action
at ignore-listed framesI already tried rebuilding, adding NEXT_SERVER_ACTIONS_ENCRYPTION_KEY to .env, reinstalling
Answered by B33fb0n3
I assume this error will be always visible when someone tries react2shell. The only when you can prevent that error is using a proxy like CF
7 Replies
Original message was deleted
delete your .next folder and the node_modules folder. Then redeploy
@B33fb0n3 delete your .next folder and the node_modules folder. Then redeploy
Valentine antOP
Just did that, but still got console errors:
added 193 packages, and audited 194 packages in 4s
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm warn using --force Recommended protections disabled.
added 1 package, and audited 195 packages in 824ms
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
> website@0.1.0 build
> next build
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
▲ Next.js 16.0.10 (Turbopack)
- Environments: .env.local
Creating an optimized production build ...
✓ Compiled successfully in 5.9s
Finished TypeScript in 3.0s
✓ Finished TypeScript in 3.0s
Collecting page data using 23 workers in 1689.7ms
✓ Collecting page data using 23 workers in 1689.7ms
✓ Generating static pages using 23 workers (37/37) in 844.2ms
Finalizing page optimization in 18.1ms
✓ Finalizing page optimization in 18.1ms
Route (app)
┌ ○ /
├ ○ /_not-found
├ ○ /icon0.svg
├ ○ /robots.txt
├ ○ /sitemap.xml
└ ○ /terms-of-service
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
ƒ (Dynamic) server-rendered on demand
> website@0.1.0 start
> next start -p 5002
▲ Next.js 16.0.10
- Local: http://localhost:5002
- Network: http://172.18.0.8:5002
✓ Starting...
✓ Ready in 256msError: Failed to find Server Action "x". This request might be from an older or newer deployment.
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action
at ignore-listed framesI assume this error will be always visible when someone tries react2shell. The only when you can prevent that error is using a proxy like CF
Answer
@Valentine antsolved?
@B33fb0n3 I assume this error will be always visible when someone tries react2shell. The only when you can prevent that error is using a proxy like CF
Hey, do you have any idea what kind of rules one can use to protect against this?
@Vachan MN Hey, do you have any idea what kind of rules one can use to protect against this?
Yes, there are serveral PoC for this vulnability. Either learn from then and build your own filters, or trust a proxy - they normally have already created filter for those. If you need further help, make sure to create your own thread in #help-forum