Closed kolibaba closed 3 years ago
Token is valid. Tried getting a new token and got the same error
@kolibaba hi, please check if your token scope is both YouTrack and Hub and re-issue it if it's not so due to changes in api we had to make this a requirement
see other breaking changes described here in case you missed it
Can't find scope hub
apologies, seems the scope was chosen correctly in your case indeed
could you please check exception's Response property? assitionally, you could provide your instance name so that I could check server logs if it's required
{"error":"invalid_token","error_code":401,"error_description":"Token is granted for [YouTrack] and can't be used for 0-0-0-0-0","error_developer_message":"Token is granted for [YouTrack] and can't be used for 0-0-0-0-0"}
Then generating new token with default selected scopes YouTrack
and YouTrack Administration
must help in your case (0-0-0-0-0
is exactly YouTrack Administration
)
Note how Scope Services
should look for a correct token
Thks, it works now! I used wrong token before, without admin scope.
Tying to get issues from YT:
Got error: