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}\"}" \ sentry.io/api/0/projects/dialogue/patient-app/releases/
this doesn’t:
curl -v
-X POST
-H “Authorization: Bearer ${SENTRY_AUTH_TOKEN}”
-F file=@main.jsbundle.map
-F name=“https://patient-app.dialogue.md/main.jsbundle.map”
sentry.io/api/0/projects/dialogue/patient-app/releases/${PACKAGE_VERSION}-${BUILD_NUMBER}/files
returns
- Trying 67.228.181.169…
- TCP_NODELAY set
- Connected to sentry.io (67.228.181.169) port 443 (#0)
- TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
- Server certificate: app.getsentry.com
- 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
Host: sentry.io
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’ a0wx592cvgzripj.global.ssl.fa…chat.com; img-src * data: blob:; report-uri sentry.io/api/54785/csp-report/?sentry_key=f724xxxe7142ff78e&sentry_release=49caff4ef98xxx8634
< 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!
Thanks,
Alexis