Error uploading sourcemaps to Sentry: project not found


I am trying to use sentry-expo for my enterprise app. The app is connected to Sentry, but not the source code. Even though I’m getting error reports, I need to know where the error is occurring in my code!

When I try publishing, I get the following error:

Error uploading sourcemaps to Sentry: project not found

expo: 39.0.0
sentry-expo: 3.0.4

Here is the hooks section 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 app.json:

import * as Sentry from 'sentry-expo';

  dsn: '[DSN from project]',
  enableInExpoDevelopment: false,
  debug: [true in dev, false in staging/prod],

I’ve seen past topics like this and they resolved it by removing the hyphens from their project or organization names. My names have no special characters. Any insights would be appreciated!

I just had the same issue. In my case, the problem was that I entered my organization’s name as it’s normally written version (“Organization Name”) instead of it’s machine name (“organization-name”).

Double check as follows:

Go to your Sentry dashboard, to your project. You will have this format of url in your browser’s url bar:
Be sure that you copy the organization and project name into your app.json exactly as you see them in that url.

1 Like

Thank you for responding! The organization and project names match exactly. They have no capital letters or hyphens. Could anything else be the issue?

Wow!! Thanks. This was really helpful