The error message is like this: Error processing request body: Error Domain=ABI37_0_0RCTErrorDomainCode=0 Invalid request Token. UserInfo={NSLocalizedDescription=Invalid request token.}
As one Stackoverflow question mentions, it works perfectly fine on iOS simulators. I updated my Expo, Expo-cli, and Expo Client installed on my iOS device, but it does not work.
The code was previously working without any problem.
can someone post an end to end reproducible example of this? a simple minimal server we can run and the minimal code to reproduce this in expo client with that server. if you can do that we can try to help! i haven’t been able to reproduce it on my own
I’ve the same issue here with sdk36. The issue fires only on IOS when I turn my device and change its orientation from portrait to landscape while taking a picture with expo-camera
I can post my client-side code, but I still have not deployed my server to the public. It is running on localhost. I am giving a presigned url to the client and the client directly uploads the image to S3.
if you can share a minimal reproducible example (including an image that you have tried to upload that fails) where all we need to do is plug in a signed s3 url that would be helpful. please post it as an issue to Issues · expo/expo · GitHub
Hi, there. All was working fine until today’s update to SDK 39 and all of a sudden this error appears on iOS. No code change has been done whatsoever. Every single image fails to upload, be it from the camera or from image picker. This is on iOS 14 and Expo SDK, running on EXPO app for IOS (development environment).
if you can share a minimal reproducible example (including an image that you have tried to upload that fails) where all we need to do is plug in a signed s3 url that would be helpful. please post it as an issue to https://github.com/expo/expo/issues
I can confirm that I never had this issue before upgrading to SDK 39 today. As soon as I try to send an image to my server (only tested in simulator right now) I am getting this error, too. People on SO suggest that this error happens when you update the state in the same time when you try to upload but I haven’t verified this yet - doesn’t sound right to me. Might be worth noting I am using form-data and axios.
@notbrent it looks like the image is missing. I am using ImageManipulator.manipulateAsync.
The result.uri I am getting is “file:///Users/hirbod/Library/Developer/CoreSimulator/Devices/Devices/BF07D092-9326-44E1-8128-97DD6560614F/data/Containers/Data/Application/63D2ADB5-7A71-445B-8C14-9C147C5EFA2F/Library/Caches/ExponentExperienceData/%2540hirbod%252Fmeineapp/ImageManipulator/A7AE9A34-102B-4716-A7CE-67B05DDCBE28.jpg”. It used to be a ph:// file path on iOS. Now it is a file://.
The file result returned is not existing. Before (Expo 35-38) this was working perfectly, I had to remove ph:// but that was working fine. Now the return has changed and there is no image.
If you watch the path I pasted, it looks like it is doing something weird here: %2540hirbod%252Fmeineapp
if you can share a minimal reproducible example (including an image that you have tried to upload that fails) where all we need to do is plug in a signed s3 url that would be helpful. please post it as an issue to https://github.com/expo/expo/issues
if this isn’t about uploading but some other issue then please share a minimal example and create an issue on Issues · expo/expo · GitHub
Anybody have an update here? The good news is that taking a picture still works, its just specifically selecting a picture from the camera roll is what breaks.