I am trying to upload the dSYM files for an Xcode project to our on-premise Sentry instance with no success. Here is the command I am using on a term:
export SENTRY_URL=<URL_to_ sentry_ server>
export SENTRY_ORG=<org>
export SENTRY_PROJECT=<project>
export SENTRY_AUTH_TOKEN=<auth_token>
export SENTRY_LOG_LEVEL=info
sentry-cli upload-dif <path_to_dir_with_ dSYM_files>
The following is the output from running this command:
INFO 2019-04-29 13:16:34.882975 -04:00 Loaded config from /Users/demetris/.sentryclirc
INFO 2019-04-29 13:16:34.883238 -04:00 sentry-cli was invoked with the following command line: “sentry-cli” “upload-dif” “/Users/demetris/Library/Developer/Xcode/DerivedData/library-bgifqvbqzfrejseqinbyftpqattr/Build/Products/Debug_LoC_Prod-iphoneos”
Found 125 debug information files
Preparing for upload… AWSAuthCore/AWSAuthCore.framework.dSYM/Contents/Resources/DWARF> Prepared debug information files for upload
INFO 2019-04-29 13:16:37.100264 -04:00 Skipping update nagger update check
error: API request failed
caused by: sentry reported an error: request failure (http status: 500)
Object({“detail”: String(“Internal Error”), “errorId”: String(“3bc3684a0df248fb9a7ead4ed9df8f9b”)})
The authentication token I created on our sentry instance has the following scopes assigned to it:
event:admin, event:read, member:read, org:read, project:read, project:releases, team:read, project:write
Note that at first I added the script indicated here https://errorlogging.loc.gov/settings/loc/projects/library-collections-ios/install/cocoa/ to the Xcode project as a Run Script in Build Phases but since that wasn’t working (internal error) I am using the command line to narrow down the problem a bit more.
When I run the upload-dif command from the script in Xcode I get the similar error:
Found 125 debug information files
Prepared debug information files for upload
Uploaded 125 missing debug information files
error: API request failed
caused by: sentry reported an error: request failure (http status: 500)
Object({“detail”: String(“Internal Error”), “errorId”: String(“6d3c253668c84005a71aaa6357aa317c”)})
Any suggestions how to debug the internal error?