a year ago
Hello Railway community!
I'm facing a challenge while attempting to deploy my SvelteKit application with Docker on Railway. Locally, the application works flawlessly, but when deploying it on Railway using Docker, I encounter the following error:
Error: Actions expect form-encoded data (received application/json)
at callaction (file:///app/build/server/index.js:1243:11) at handleactionjsonrequest (file:///app/build/server/index.js:1112:24)
at renderpage (file:///app/build/server/index.js:2635:12) at process.processTicksAndRejections (node:internal/process/taskqueues:95:5)
at async resolve2 (file:///app/build/server/index.js:3699:24)
at async respond (file:///app/build/server/index.js:3585:22)
at async Array.ssr (file:///app/build/handler.js:1243:3)
Additional Details:
I am using pnpm as my package manager within the Dockerized environment.
I have not specified any particular FORM_METHOD in the SvelteKit adapter configuration.
The application functions correctly locally when using Docker Compose, but issues arise when deployed on Railway.
The Dockerfile, svelte.config.js, and vite.config.js files are correctly configured for Docker deployment.
I would greatly appreciate any insights, suggestions, or shared experiences related to deploying SvelteKit with Docker on Railway. Has anyone encountered a similar issue, or does anyone have recommendations for addressing it in the context of Dockerized deployment on Railway?
Thank you in advance for your support! 🚂
0 Replies