Skip to content
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

kb fetcher.webOperations('GET', ...) returns falsly response.responseText undefined #506

Closed
bourgeoa opened this issue Jun 23, 2021 · 3 comments

Comments

@bourgeoa
Copy link
Contributor

bourgeoa commented Jun 23, 2021

from SolidOS/source-pane#17

rdflib.js in kb.fetcher.webOperations() is responsible of the problem.
response.responseText on some situation returns undefined.
Replacing by await response.text() returns correctly the body.

@timbl
Copy link
Member

timbl commented Jun 25, 2021

Interesting ... here is a debugger dump of the response object when this problem arises:
image

@timbl
Copy link
Member

timbl commented Jun 25, 2021

It is strange that the obejct does not have a response.body() getter which https://developer.mozilla.org/en-US/docs/Web/API/Response says it should, as the Response also mixes in:
image

@bourgeoa
Copy link
Contributor Author

This is not only a chrome bug only I got it also on firefox.

bourgeoa added a commit to SolidOS/source-pane that referenced this issue Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants