You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My best guess is that this is related to request.clone(), which tends to be problematic for non-browser environments.
PR #601 released in Ky 1.4.0 attempts to address this to some degree by reducing our reliance on request.clone() and hopefully that has improved the situation. Going to close this for now. Please let me know if anyone else runs into this.
This has been one of the more confusing debugging experiences.
I will provide context as it may help others.
We tried using https://pagespeed.web.dev/ to measure our page performance.
Our website produces good Lighthouse score when tested using Lighthouse built into Chrome, but we were tipped that it is failing PageSpeed test.
Upon investigating, we discovered that PageSpeed is failing with an error
However, nothing immediately obvious surfaced as to why it would be failing, i.e. nothing in Sentry other than the request is failing.
Then we noticed that around the same time that we run PageSpeed test, our load balancer is returning 400 error.
Further investigation led to discover that ky is sending an empty request to our server.
However,
The request itself is pretty simple:
We ended up replacing
ky
withfetch
and it started working again.TLDLR something is quietly failing when PageSpeed (whatever client they are using) is running code that uses ky.
The text was updated successfully, but these errors were encountered: