This is what I did:
- I opened https://sentry.io/api/
- Clicked on “Create New Token” and enabled all permissions (please let me know which permissions are really needed here).
- I took the token which appeared in the list.
- I used grunt-sentry-release package (my project used grunt) and set
apiKey
to that token + set uporganization
,project
,version
andfiles
there.
when I run grunt task it returns API key is not valid
. I also tried to do curls requests manually:
curl -u 14156761a4dc462e92667a4165629c7795afd711a031434392b11a18c5169b57: https://sentry.io/api/0/projects/1/
it returned an empty response
curl -X POST -H "Authorization: Bearer " -H “Content-Type: application/json” -d ‘{“version”: “2.0rc2”, “ref”: “6ba09a7c53235ee8a8fa5ee4c1ca8ca886e7fdbb”}’ "https://app.getsentry.com/api/0/projects///releases/"
where key
is computed using node: new Buffer('14156761a4dc462e92667a4165629c7795afd711a031434392b11a18c5169b57:').toString('base64')
and organization
and project
are filled respectively. as for payload, I took it from the docs.
it returned API key is not valid
. The same response happened when I did without user:password delimiter.
What I did wrong here?
Psst, I spoofed few characters of the key in this topic, but you know how tokens look like, don’t you?