Get a list of projects.
Response "{\"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\"}"
var connection = new BearerTokenConnection("https://cops-cz.myjetbrains.com/youtrack/", "perm:abcdefgh");
var projectsService = connection.CreateProjectsService();
var projects = await projectsService.GetAccessibleProjects();
Please advice us what is the issue.
Expected behavior
Get a list of projects.
Actual behavior
An exception
Steps to reproduce the behavior
Please advice us what is the issue.