Upload dsym via sentry-cli error with debug_id

I am attempting to do an upload to a self hosted sentry. The cli command looks like so:

sentry-cli --auth-token $SENTRY_TOKEN upload-dif --org $SENTRY_ORG --project $SENTRY_PROJECT ./company_name_here.v3.dev-1.0.3-19.dSYM.zip --log-level=debug

This hits the following error:

DEBUG 2021-06-02 14:10:58.024823 -07:00 request POST https://sentry.selfhosteddomain.com/api/0/projects/companyname_sentry/tg2_dev_ios_mobile/files/difs/assemble/
DEBUG 2021-06-02 14:10:58.024839 -07:00 using token authentication
DEBUG 2021-06-02 14:10:58.024864 -07:00 json body: {“20786808b311f3f1314b1e5f8891879072f4b088”:{“name”:“CompanyNameHere”,“debug_id”:“3a57a9c0-e4e4-3ba5-ac64-b8985aad7fd3”,“chunks”:[“ff57cb164c61617c7894277c8535c029384df8a1”,“679b03f56d33131ba10f1e3bcf6d39563f1c93df”]},“53ee595380dafbea097da6e312d2c77827b9bd56”:{“name”:“CobrowseIO”,“debug_id”:“a3c70abd-f829-3ea2-aa77-b1a10b213637”,“chunks”:[“53ee595380dafbea097da6e312d2c77827b9bd56”]},“c8a480eb6833be26c18dcaee06bf4d355b305e1c”:{“name”:“Intercom”,“debug_id”:“fdd9e34e-a8e7-3639-a569-f7a5d524785d”,“chunks”:[“c8a480eb6833be26c18dcaee06bf4d355b305e1c”]}}
DEBUG 2021-06-02 14:10:58.024873 -07:00 retry number 0, max retries: 5
DEBUG 2021-06-02 14:10:58.113215 -07:00 > POST /api/0/projects/tunego_sentry/tg2_dev_ios_mobile/files/difs/assemble/ HTTP/1.1
DEBUG 2021-06-02 14:10:58.113243 -07:00 > Host: sentry.selfhosteddomain.com
DEBUG 2021-06-02 14:10:58.113251 -07:00 > Accept: /
DEBUG 2021-06-02 14:10:58.113257 -07:00 > Connection: TE
DEBUG 2021-06-02 14:10:58.113263 -07:00 > TE: gzip
DEBUG 2021-06-02 14:10:58.113269 -07:00 > User-Agent: sentry-cli/1.65.0
DEBUG 2021-06-02 14:10:58.113291 -07:00 > Authorization: Bearer 15328561***
DEBUG 2021-06-02 14:10:58.113298 -07:00 > Content-Type: application/json
DEBUG 2021-06-02 14:10:58.113304 -07:00 > Content-Length: 545
DEBUG 2021-06-02 14:10:58.251901 -07:00 < HTTP/1.1 400 BAD REQUEST
DEBUG 2021-06-02 14:10:58.251961 -07:00 < Server: nginx
DEBUG 2021-06-02 14:10:58.251981 -07:00 < Date: Wed, 02 Jun 2021 21:10:58 GMT
DEBUG 2021-06-02 14:10:58.251998 -07:00 < Content-Type: application/json
DEBUG 2021-06-02 14:10:58.252015 -07:00 < Content-Length: 78
DEBUG 2021-06-02 14:10:58.252029 -07:00 < Connection: close
DEBUG 2021-06-02 14:10:58.252042 -07:00 < X-XSS-Protection: 1; mode=block
DEBUG 2021-06-02 14:10:58.252057 -07:00 < Content-Language: en
DEBUG 2021-06-02 14:10:58.252070 -07:00 < X-Content-Type-Options: nosniff
DEBUG 2021-06-02 14:10:58.252084 -07:00 < Vary: Accept-Language, Cookie
DEBUG 2021-06-02 14:10:58.252266 -07:00 < Allow: POST, OPTIONS
DEBUG 2021-06-02 14:10:58.252296 -07:00 < X-Frame-Options: deny
DEBUG 2021-06-02 14:10:58.252607 -07:00 response status: 400
DEBUG 2021-06-02 14:10:58.252662 -07:00 body: {“error”: “Additional properties are not allowed (‘debug_id’ was unexpected)”}

I am not seeing anyone else hitting these issues, and the app in question uploads to App Store connect with no issues. Any insight is greatly appreciated.

You are presumably running a version before Sentry 10.0.0. The error you’re receiving is issued by the Sentry server for not recognizing a property introduced in this PR, where we also changed so that unknown properties will be ignored.

Theoretically, you could downgrade sentry-cli to a much older version before this attribute was introduced. However, I highly suggest that you upgrade to a more recent Sentry version, which also comes with improved symbolication of iOS crashes.

1 Like

We were able to resolve by downgrading from sentry-cli 1.65.0 to 1.64.2. I hadn’t updated the forum post yet because we are still testing the resolution, but it appears this change was introduced 12 days ago.

1 Like