[Resolved] Error uploading sourcemaps to Sentry

#1

Hello,

Running:
expo: 29.0.0
sentry: 1.9.0

Trying to recreate an issue found with a new blank project and I’m having issues with Sentry.

Here is the actual error:

Error uploading sourcemaps to Sentry: API request failed
  caused by: sentry reported an error: You do not have permission to perform this action. (http status: 403)

Here is the hooks in my app.json

    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "[org name from Sentry]",
            "project": "[project name from Sentry]",
            "authToken": "[API key I generated in Sentry]"
          }
        }
      ]
    }

Here is where I’m setting up Sentry in the app.json

import Sentry from "sentry-expo";
// import { SentrySeverity, SentryLog } from 'react-native-sentry';

//Sentry.enableInExpoDevelopment = true;
Sentry.config(
  "https://[dsn]@sentry.io/[#]"
).install();

Any suggestions? The setup in my test application looks identical to the other setup I have that is working…

0 Likes

#2

Both my org name and project named had dashes “-”. I removed the dashes in both the organization and project names and regenerated an API key and no longer receiving the 403 errors. So I’ll assume that either the project or organization name (or both) can not have dash characters.

0 Likes

#3

@jhorner,

Glad you got this resolved. Also, thank you for posting the presumed solution so others in the community can see! We always appreciate that.

Cheers,

Adam

0 Likes

closed #4

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

0 Likes