Error when running Sentry postPublish hook


#1

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.


#2

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.


#3

see: https://github.com/expo/expo/issues/282

i need to improve error messages from failing to upload to sentry (i do see the irony in this)


#4

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.


#5

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

#6

fixed in sentry-expo@1.2.0


#7

Awesome! Looks good.