简体   繁体   English

Youtrack REST API“无法从集线器创建服务帐户,放弃”错误

[英]Youtrack REST API “Failed to create service account from Hub, giving up” error

I'm trying to receive data from REST Api after Authorization in Hub. 在Hub中进行授权后,我正在尝试从REST Api接收数据。 Here is my actions: 这是我的动作:

1.Authenticate application in Hub using Client credentials flow (by the way, is it right flow choice for chat bot?) 1.使用客户端凭据流在集线器中对应用程序进行身份验证(顺便说一句,聊天机器人是正确的流选择吗?)

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 2.然后我正尝试使用收到的访问令牌从YouTrack获取问题

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"} 响应的状态为500,并显示以下消息{"value": "Failed to create service account from Hub, giving up"}

Both Hub and YouTrack is stand-alone. 集线器和YouTrack都是独立的。

What's going on and what should i do? 这是怎么回事,我该怎么办? Thanks 谢谢

Updating YouTrack to fresh build fixes issue. 将YouTrack更新为新的构建修复程序问题。
Thanks to Jk1 's comment above. 感谢上面Jk1的评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM