-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch
broken in SSR on Cloudflare Pages
#6751
Comments
My original error had the stack trace
|
The error message you say you're able to reproduce in a minimal repro is the same as #6739. So this should either be closed in favor of that, or we need a separate repro if there really is a different bug going on. |
@Conduitry yes, this does appear to be the same issue as #6739 (Pages/Wrangler aside). I'll see if I can get a repro of my original error - I'd got most of the way through the report before noticing. |
Ok, I'll close this as a duplicate then to help keep track of things and would recommend you file a new issue if you're able to reproduce the other error. Thanks! |
Describe the bug
Attempting to
fetch
from +page.ts fails. The original error I came across saidFailed to get the 'credentials' property on 'Request': the property is not implemented.
I posted about this in the Cloudflare Discord and the finger was pointed at https://github.com/sveltejs/kit/pull/5116/files.
In the original issue it was stated "At the time this hack was added, the workers runtime didn't support the credentials header set on a request - this looks to be support now" but the Cloudflare people on the Discord don't agree with this.
I made a minimal test repo, although in this case the error is different:
Failed to get the 'mode' property on 'Request': the property is not implemented.
I haven't tested this when publishing via Wrangler, but they share the same runtime so I would expect it to be broken in that case too.
Reproduction
tl;dr: Publish https://github.com/Deebster/sveltekit-broken-fetch on Cloudflare Pages.
Full steps
In Github:
In Cloudflare:
NODE_VERSION
with value16
In browser:
Logs
System Info
Severity
blocking an upgrade
Additional Information
Anyone using current version of SvelteKit cannot do
fetch
in SSR on Cloudflare Pages.The text was updated successfully, but these errors were encountered: