0

I'm trying to receive data from REST Api after Authorization in Hub. Here is my actions:

1.Authenticate application in Hub using Client credentials flow (by the way, is it right flow choice for chat bot?)

POST /api/rest/oauth2/token HTTP/1.1
Host: hub.example.com
Authorization: Basic base64(service_id + “:” + service_secret)
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&scope=YOUTRACK_SERVICE_ID

2.Then i'm trying to get issues from YouTrack, using recieved access token

GET /rest/issue HTTP/1.1
Host: yt.example.com
Authorization: Bearer ACCESS_TOKEN
Accept: application/json

Response has status 500 with this message {"value": "Failed to create service account from Hub, giving up"}

Both Hub and YouTrack is stand-alone.

What's going on and what should i do? Thanks

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
Ashot
  • 640
  • 1
  • 6
  • 14

1 Answers1

1

Updating YouTrack to fresh build fixes issue.
Thanks to Jk1's comment above.

Community
  • 1
  • 1
Ashot
  • 640
  • 1
  • 6
  • 14