Skip to content

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

@evelant

Description

@evelant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions