sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

could not parse JSON response

Open JoseVov opened this issue 4 months ago • 1 comments

CLI Version

2.37.0

Operating System and Architecture

  • [x] macOS (arm64)
  • [ ] macOS (x86_64)
  • [ ] Linux (i686)
  • [ ] Linux (x86_64)
  • [ ] Linux (armv7)
  • [ ] Linux (aarch64)
  • [ ] Windows (i686)
  • [ ] Windows (x86_64)

Operating System Version

14.1.1

Link to reproduction repository

No response

CLI Command

sentry-cli organizations list

Exact Reproduction Steps

Just call

sentry-cli organizations list

Expected Results

[{"id":1,"name":"xxx","slug":"xxxx","dateCreated":"2024-06-02T09:06:19.205496Z","status":{"id":"active","name":"active"},"avatar":{"avatarType":"","avatarUuid":null},"isEarlyAdopter":false,"require2FA":false,"isAcceptingEvents":true}]

Actual Results

error: could not parse JSON response
  caused by: invalid type: integer `1`, expected a string at line 1 column 9

Logs

If I made the api request manually with CURL

curl -H "Authorization: Bearer xxxxxx" https://sentry.xxxx.xxx/api/0/organizations/

It works as expected

JoseVov avatar Oct 21 '24 16:10 JoseVov