-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Crashing when calling fetch #5327
Comments
"Juste use fetch inside a load function" is not a reproduction. Feel free to open a new issue when you have one. |
I too have encountered this error and it is certainly due to a
I'm also seeing this
Am investigating if it's platform related in some way as it doesn't seem to be a widely encountered error. |
I am seeing the same problem in Arch Linux and the latest MacOS. It looks like this has something todo with the fetch node polyfill defined in kit when the transition from node-fetch to undici was made. This is most likely a problem with undici as someone raised an issue with them about this error. |
Sorry for posting once again on a closed thread but, if anyone sees this, it's not a problem with Svelte Kit or undici, at least in my case. Turns out this was a problem with the PHP CLI version 8.1.7-2 (in Arch Linux, not sure if it's limited to this OS/version). The backend is a Laravel app and I was running it with artisan (php -S would cause my fetch calls have the same problem). Once I ran Laravel with nginx and php-fpm there were no issues. |
Same error here, running As @anderfernandes suggested i installed nginx with php-fpm but the issue is still there, can you please provide more info about your solution, maybe how you installed and configured nginx? Tnanks in advance! |
I used the same one as described here: https://laravel.com/docs/9.x/deployment#nginx. |
I'm also getting
My api is returning this headers:
The response status after fetch is 200 and the response body is properly formated. |
According to their docs, Laravel is only supported in PHP 8.x. |
Describe the bug
And the code :
Reproduction
Juste use fetch inside a load function.
Logs
System Info
Severity
blocking an upgrade
Additional Information
It was working with
The text was updated successfully, but these errors were encountered: