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

react-native throws Error: The specified blob is invalid when a supabase-js rpc call fails #4

Open
evelant opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@evelant
Copy link

evelant commented Mar 8, 2024

Bug report

  • [ X] I confirm this is a bug with Supabase, not with my own application.
  • [ X] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

On react native when a supabase-js rpc call fails due to the user being offline The specified blob is invalid gets thrown instead of a meaningful error. I suspect it's coming from this node-fetch implementation as it's the only place I can find where blob might be involved. The blob implementation on react-native is incomplete: react-native-community/discussions-and-proposals#109

To Reproduce

  1. Run supabase-js on react-native
  2. Disconnect the device from the internet
  3. Attempt to call a postgres function

Expected behavior

Meaningful errors should be thrown instead of this react-native internal blob error

Screenshots

N/A

System information

  • OS: macOS
  • Browser (if applies) N/A
  • Version of supabase-js: 2.39.7
  • Version of Node.js: N/A

Additional context

@evelant evelant added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant