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

Storage upload network error on Expo SDK 52 #1308

Open
2 tasks done
Noahkoole opened this issue Nov 11, 2024 · 0 comments
Open
2 tasks done

Storage upload network error on Expo SDK 52 #1308

Noahkoole opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Noahkoole
Copy link

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.

@Noahkoole Noahkoole added the bug Something isn't working label Nov 11, 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