Sentry self hosted


I’m using sentry as a self hosted service, everything work fine for the error reporting but I would like to upload source map.

I’ve followed using sentry doc, but I still have trouble with the post publish part since I’m on a self hosted service (I think this is the cause).

At the moment here’s the app.json setup:

"postPublish": [
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "org's short name",
            "project": "project's short name",
            "authToken": "**MyAuthToken**"

Then, after the publish I still have:

10:22:17 [exp] Running postPublish hook: sentry-expo/upload-sourcemaps
10:22:18 [exp] Error uploading sourcemaps to Sentry: API request failed
  caused by: sentry reported an error: Invalid token (http status: 401)

How am I supposed to tell the script to publish on my own installation?

Thanks !

Hi! I think the easiest thing you could do for the time being would be to edit the sentry-expo plugin to support your API server using a configuration field. If you get that working, I’m sure @notbrent would love a PR! In the meantime, I think you should be able to publish your fork to npm to use for the time being.

Thanks a lot.
I looked ad the plugin code and it seems there’s an url option, not mentionned in the docs.
It’s working perfectly, Thank you :slight_smile:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.