-
Notifications
You must be signed in to change notification settings - Fork 116
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
error on Response.blob() #387
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Reproduction
https://stackblitz.com/edit/github-xzcnqt?file=app.vue,nuxt.config.ts
Describe the bug
When using Nuxts $fetch (-->ofetch) instead of the native fetch Response.blob() creates an error:
TypeError: r2.blob is not a function
Additional context
Originally opened Nuxt Issue: nuxt/nuxt#26843
For reference the function of the directus sdk which is used in the demo:
https://github.com/directus/directus/blob/d37a16a31ebd201ef884bf30994366b95b156458/sdk/src/rest/commands/read/assets.ts#L33-L44
NOTE: The function readAssetArrayBuffer (directy below) which does the same for arrayBuffers works as expected. Therewith I assume it's something about blobs.
Logs
No response
The text was updated successfully, but these errors were encountered: