I’m running into this error when running exp publish
after following the guide Using Sentry guide (https://docs.expo.io/versions/v17.0.0/guides/using-sentry.html
[exp] Running postPublish hook: sentry-expo/upload-sourcemaps
[exp] Error: Process exited with non-zero code: 1
at ChildProcess.child.on (~/app/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Any help appreciated.
hello! make sure you’re using a node version that supports async/await and that your org short name, project short name, and api key are entered correctly.
see: Improve error handling for sentry-expo · Issue #282 · expo/expo · GitHub
i need to improve error messages from failing to upload to sentry (i do see the irony in this)
Thanks! I fixed it, problem was I wasn’t using the public DNS. But yeah, it would definitely help to have a better error message.
going to push an update that makes error messages look like this:
[exp] Running postPublish hook: sentry-expo/upload-sourcemaps
[exp] Error uploading sourcemaps to Sentry: organization or project not found
[exp] Verify that your Sentry configuration in app.json is correct and refer to https://docs.expo.io/versions/latest/guides/using-sentry.html
fixed in sentry-expo@1.2.0