Skip to content

500 Server error when deployed to Cloudflare #1103

Answered by hynj
MattHeslington asked this question in Help
Discussion options

You must be logged in to vote

I had similar issues, I am also using planetscale and sveltekit on CF pages. As Pilcrow mentioned it was due to Sveltekit fetching and CF returning a "resource limit exceeded HTML page". I worked out this was the case by using the streaming log's feature and then I could see the errors and my console.log output.

I was already on the default "paid plan" and using the default "bundled" pricing model. It only allowed 50ms of execution. I have found that the function takes a median of around 200-300ms..

CF would let these requests sporadically go through. I moved to the "unbundled" function pricing model and this has sort of fixed the issue, I am now on the new pricing scheme which also sort…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@MattHeslington
Comment options

@MattHeslington
Comment options

@pilcrowonpaper
Comment options

@hynj
Comment options

Answer selected by MattHeslington
@MattHeslington
Comment options

Comment options

You must be logged in to vote
1 reply
@MattHeslington
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants