Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Project not found when upload debug symbols to sentry #4439

Open
ashinberish opened this issue Jan 13, 2025 · 3 comments
Open

Getting Project not found when upload debug symbols to sentry #4439

ashinberish opened this issue Jan 13, 2025 · 3 comments

Comments

@ashinberish
Copy link

What React Native libraries do you use?

React Native without Frameworks

Are you using sentry.io or on-premise?

on-premise (Self-Hosted)

@sentry/react-native SDK Version

5.33.1

How does your development environment look like?

info Fetching system and libraries information...
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1
Memory: 116.92 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
Android SDK:
API Levels: 28, 30, 31, 32, 34
Build Tools: 28.0.3, 30.0.2, 30.0.3, 33.0.0, 33.0.1, 34.0.0
System Images: android-34 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23726.103.2422.12816248
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
Languages:
Java: 17.0.13 - /opt/homebrew/opt/openjdk@17/bin/javac
npmPackages:
@react-native-community/cli: latest => 6.3.1
react: 17.0.2 => 17.0.2
react-native: 0.67.2 => 0.67.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Sentry.init()

Sentry.init({
dsn: "URL"
})

Steps to Reproduce

When executing the build phases in iOS, Getting "Project not found". I've confirmed that the values in sentry.properties are correct. Recently i have updated the sentry package from "3.3.2" to "5.33.1". Perfectly works on "3.3.2".

Image

Expected Result

Should upload to sentry

Actual Result

Project not Found

@krystofwoldrich
Copy link
Member

Hi @ashinberish,
thank you for the message, could you share your current Bundle React Native code and images Xcode Build Phase with us?

Does it match our documentation -> https://docs.sentry.io/platforms/react-native/manual-setup/manual-setup/#configure-automatic-source-maps-upload

What is the version of your self-hosted Sentry? The version should be compatible with Sentry CLI 2.36.1 (this version ships with the RN SDK 5.33.1)

@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Jan 15, 2025
@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 3 Jan 15, 2025
@ashinberish
Copy link
Author

My Project's Bundle React Native code and images looks like this

export EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\"
export SENTRY_PROPERTIES=../sentry.properties
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \  ../node_modules/react-native/scripts/react-native-xcode.sh

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 15, 2025
@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jan 17, 2025

@ashinberish Thank you for the details.

Can you check what version of the sentry-cli are you using by the following command?

./node_modules/@sentry/cli/bin/sentry-cli --version

Can you add export SENTRY_LOG_LEVEL=debug to your build phase and share the debug output with us?


Because the issue occured after the SDK upgrade I suspect the self-hosted version of Sentry is not compatible with the newer Sentry CLI shipped with the new Sentry RN SDK. You can install older version of the @sentry/cli package to temporarily fix the upload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

2 participants