Can't upload source map file

Trying to follow sentry to upload a source map to the release of a React Native app.

NB I’ve sanitized the output below removing https:// so that I can post the question without violating the forum policy on links.

this works:

curl -v \
  -H "Authorization: Bearer ${SENTRY_AUTH_TOKEN}" \
  -H "Content-Type: application/json" -d "{\"version\": \"${PACKAGE_VERSION}-${BUILD_NUMBER}\"}" \

this doesn’t:

curl -v
-H “Authorization: Bearer ${SENTRY_AUTH_TOKEN}”


  • Trying…
  • Connected to ( port 443 (#0)
  • TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  • Server certificate:
  • Server certificate: DigiCert SHA2 Secure Server CA
  • Server certificate: DigiCert Global Root CA

POST /api/0/projects/dialogue/patient-app/releases/1.0.2-0/files HTTP/1.1
User-Agent: curl/7.51.0
Accept: /
Authorization: Bearer 678f2ed6xxx016c2cae
Content-Length: 2596703
Expect: 100-continue
Content-Type: multipart/form-data; boundary=------------------------296493e2887555a1

< HTTP/1.1 100 Continue
< HTTP/1.1 404 NOT FOUND
< Server: nginx
< Date: Sun, 29 Jan 2017 00:34:53 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: close
< X-XSS-Protection: 1; mode=block
< Content-Language: en
< X-Content-Type-Options: nosniff
< Vary: Accept-Language, Cookie
< Content-Security-Policy: default-src *; script-src ‘self’ ‘unsafe-eval’ ‘unsafe-inline’…; img-src * data: blob:; report-uri
< X-Frame-Options: deny
< X-Served-By: web-10
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

  • Curl_http_done: called premature == 0
  • Closing connection 0

Please help!


Without looking in depth, you’re definitely missing a trailing slash on the URL. Pretty sure that would result in a 404 when you POST since we can’t redirect to append the slash.

1 Like

Thanks Matt! That was the issue. I’ve also double-checked the docs and they are correct (it was my miss).