Potential internal CF Pages issue: Error 500 on first post request but not subsequent ones

The pages worker seems to fail to process the first post request, but a try catch on the entire backend doesn't catch it and it happens even if there is no backend code other than just returning OK directly.

I suspect that there is an issue at Cloudlfare Pages, SvelteKit or the Cloudflare Pages Adapter for SvelteKit.

The Error 500:
Unexpected token '<', "<!DOCTYPE "... is not valid JSON
or
JSON.parse: unexpected character at line 1 column 1 of the JSON data
Was this page helpful?