-
Notifications
You must be signed in to change notification settings - Fork 85
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
✔ Uploaded to EAS --> Unexpected token D in JSON at position 1 #2515
Comments
I spent a few hours trying to simplify my setup, and only after removing a dynamic configuration function in my |
Hi @KernAlan, Can you share your dynamic config setup with me? Also, I believe that running a failing command with |
Here was the problematic
I haven't been able to test more, but I suspect EAS expects an object, not a function wrapper. I used the function to be able to do dynamic swapping of env variables here, but getting rid of that approach fixes the issue. |
On my case, it has the same issue when I am console logging on the app.config.ts @brentvatne |
Same here @Jonatthu @brentvatne it looks like logging to the console in app.config.ts causes the problem. Hopefully the underlying issue can still be addressed. |
@brentvatne I'm encountering the same issue as others when using console logs in |
Hi, It seems like the error you all describe comes from the EAS Update runtime version resolution logic, which is being run just after uploading the app archive to EAS and before actually starting the build. I believe that at the moment it uses the cc: @wschurman |
@szdziedzic Yes, this has been like that for a long time, and we use dotenv which outputs a couple of console.logs I cannot remove, so my CI keeps failing! |
@brentvatne @szdziedzic any updates? |
Contributors of expo-updates are going to be discussing this soon and will hopefully have a fix soon as well. For now, removing the console.logs is the only option. |
Planning to cherry-pick the above PR into SDK 51 to fix. Will post on this thread when ready to use. |
Fix was released in expo-updates 0.25.27. |
Build/Submit details page URL
https://expo.dev/accounts/kernalan/projects/lifesage
Summary
Running
eas build --platform ios --profile development
triggers a json parsing error as soon as the archive hits the EAS server:Managed or bare?
Managed
Environment
Error output
Reproducible demo or steps to reproduce from a blank project
eas build --platform ios --profile development
The text was updated successfully, but these errors were encountered: