Skip to content

Storage upload network error on Expo SDK 52 #1308

@Noahkoole

Description

@Noahkoole

Bug report

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

Describe the bug

When running a new expo app on SDK 52 on iOS simulator a file can not be uploaded that is larger then 500 KB. Otherwise it results in a network error.

When trying to upload any image file to a private mock endpoint no issue arrises so it has to do with supabase.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Install a basic expo app using the new 52 SDK. npx create-expo-app@latest --template default@beta
  2. Setup the default supabase configuration
  3. Try to upload a image that is larger then 500 KB-1 MB.
const { data: uploadedImage, error: uploadError } = await supabase.storage
      .from('bg_images')
      .upload(bgImageName, decode(base64), {
        contentType: 'image/' + fileExtension.slice(1),
        upsert: true,
      });
  1. This throws an "Network error" which is outside of the "error" return result

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: iOS Simulator
  • Version of supabase-js: 2.45.4
  • Expo SDK 52
  • React native 0.76 (New architecture)

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions