Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stream reading a Response object may not be available while a progress callback is specified#1281

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Xmader wants to merge1 commit intohuggingface:main
base:main
Choose a base branch
Loading
fromXmader:patch-1

Conversation

Xmader
Copy link

Thebody property may not be available on a Response object to do streaming, e.g., when using afetch polyfill.

@xenova
Copy link
Collaborator

Thanks for the PR! Very interesting. 👀 Do you have a link to some documentation which states that the response body may be undefined in that (or some other) polyfill?

@Xmader
Copy link
Author

Hi@xenova, Thanks for the reply!
I couldn't find anywhere in the documentation of that polyfill, but I found a few issues (JakeChampion/fetch#1454,JakeChampion/fetch#746,JakeChampion/fetch#198 (comment)) sayingResponse.body is undefined and would unlikely be supported ever.


Another polyfillhttps://github.com/developit/unfetch saysit only supports a subset of the Response class,response.body is not included.

@xenova
Copy link
Collaborator

Thanks for the info 👍 And just for interest's sake, what environment are you running in that requires a fetch polyfill?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Xmader@xenova

[8]ページ先頭

©2009-2025 Movatter.jp