-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
fix(adapter): construct Request with a url and options #6524
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
fix(adapter): construct Request with a url and options #6524
Conversation
+1, works for me too. But there seems to be another issue related to the Streams API using Fetch. Lines 158 to 168 in c6cce43
Calling the last line This is troublesome for local development or environments that do not support HTTP2 or HTTP3. Any ideas for a solution? Related issue: |
5f05c6a
to
3ba8c9a
Compare
3ba8c9a
to
1552a3d
Compare
Whilst testing the upload progress features with the new
fetch
adapter, I've found that when passing aFormData
object as the body, theonUploadProgress
callback was never triggered.Debugging this, I found that the
getBodyLength
function was always returning0
. The problematic line:After quite a bit of debugging, I double checked the MDN documentation, which doesn't explicitly state that it is okay to pass a
FormData
object to the constructor:Changing the above to the following fixes it for me (Chrome 126 on macOS)
See: https://developer.mozilla.org/en-US/docs/Web/API/Request/Request