edgafner / dorkag

Issue Tracker repository for all Dorkag plugins
Other
5 stars 0 forks source link

Get 401 back even though I provide a full access PAT #60

Closed flq closed 5 months ago

flq commented 5 months ago

Describe the bug I go through the process of creating a personal access token (PAT) in azure devops. After copying the PAT into the provided field of the plugin and I try to pull requests, I get shown an error:

Could not connect to repository https://dev.azure.com/*** with account https://dev.azure.com/frank@aheadintranet.com HTTP 
Request Request GET https://app.vssps.visualstudio.com/_apis/profile/profiles/me?details=true&api-version=7.2-preview.3 failed with status code 401 and response body: 
Log in again…

If I try to use PAT though the user icon and "Log In"...

image

I then get an error message like such

image

To be honest, this is like the basic first step which you probably test a lot, so I'm not sure what is happening. Is it maybe a problem that I usually pull and push with an ssh key?

Jonatha1983 commented 5 months ago

No it is not related to the fact you are pushing a lot with ssh. @flq

Did you create the PAT with All Organization Access as I documented?

If not you need to create one and if yes check that in case you using ssh the clone with ssh checkbox is enabled.

Please let me know if one of these fixed the issue.

flq commented 5 months ago

ah, the "access to all organizations" thing I overlooked - sorry about that! thanks for the quick reply 💜