pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.55k stars 1.59k forks source link

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

Open farzadali3 opened 5 days ago

farzadali3 commented 5 days ago

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 commented 5 days ago

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