Sveltekit building but render function as error


My site name is

The local build is working fine, even with the Netlify CLI tool.

But the page is returning when visited:

{“errorType”:“TypeError”,“errorMessage”:“Request with GET/HEAD method cannot have body”,“trace”:[“TypeError: Request with GET/HEAD method cannot have body”," at new Request2 (/var/task/.netlify/functions-internal/render.js:5265:17)"," at Runtime.handler (/var/task/.netlify/functions-internal/render.js:33339:39)"," at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"]}

I’ve been through my code with a fine toothcomb and can’t see what the issue is!

Welcome to the forums @mrjaypeasmith

The error

means a body is getting sent as if the request was a POST though it is a GET/HEAD request (which don’t accept a body.)

How or why this is happening I could not say without seeing the code behind it.

The render functionality for SvelteKit is handled by the @sveltejs/adapter-netlify (and GitHub repository) so it is possible there is an issue internally.