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

Could not load... Failed to getSize of file:/// -- iOS React Native #3392

Open
farzadali3 opened this issue Nov 7, 2024 · 1 comment
Open

Comments

@farzadali3
Copy link

When using the following code to load a texture from an S3 presigned URL:

const texture = useTexture(s3PresignedUrl);

I encounter an error on React Native for iOS:

Error: Could not load https://[my-url]: Failed to getSize of file:///var/mobile/Containers/Data/Application/B52E51BC-89CA-4687-9298-3DE5C50BE098/Library/Caches/ExponentAsset-12cc3b989a74467a9322996b53b27856.

I have also attempted to use useLoader, but I receive the same error.

@argotechnica
Copy link

To add more info to this (@farzadali3 and I are working together on this issue):

  • the presigned S3 URL goes to a JPEG
  • this same presigned S3 URL works fine in React Native on Android
  • a different, generic, public URL to a JPEG works fine in React Native on iOS
  • latest versions of @react-three/drei and @react-three/fiber, both imported using /native
  • RN v0.74.1 — does that matter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants