Closed RomeHein closed 1 year ago
Ok I found the issue.
It was coming from the getMetadataSync
function in the helper file:
createdAt: new Date(metadataStat.birthtime).toISOString(),
Somehow on Netlify the birthtime
of the metadata file isn't right and return 1970
date.
This issue took me 3 days to debug. I wish expo had better logs instead of just logging "error: noUpdateAvailable"
how to solve
Ok I found the issue. It was coming from the
getMetadataSync
function in the helper file:createdAt: new Date(metadataStat.birthtime).toISOString(),
Somehow on Netlify the
birthtime
of the metadata file isn't right and return1970
date. This issue took me 3 days to debug. I wish expo had better logs instead of just logging "error: noUpdateAvailable"
how to fix that error bro?
Hello there 👋
I have an issue running an OTA with the expo manage flow.
eas build
andeas submit
, any bundle that are created via thenpx expo export
command are not seen as an update by the app, and I get this from the iOS stack trace:From the stack trace it seems that there is an issue with the
updateId
. But I have no idea how this variable interact with the update flow.So to sum up:
expo run:ios --configuration Release --no-build-cache
, then updating the app version, then runningnpx expo export
, then copy/pasting the content of the dist folder into the rightruntimeVersion
folder of the eas-server, run eas server locally, open local server via an SSH tunnel + proxy => works ✅eas build --profile beta
andeas submit --profile beta
, then updating the app version, then runningnpx expo export
, then copy/pasting the content of the dist folder into the rightruntimeVersion
folder of the eas-server , _run eas server on netlify, with the exact same code as the local one=> does not work ❌Here is my
app.json
:And here is the request header I receive and then print from the eas-server (the one on netlify), once all
if
conditions are passed (all IPs, IDs and cookies are fake) :Thanks for any help/assistance you could provide 👍