edgafner / dorkag

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

[BUG]: Can't connect to Azure Devops Services #85

Closed martin-oehlert-mw closed 3 weeks ago

martin-oehlert-mw commented 2 months ago

Describe the bug After adding the pat to the plugin, the first request fails with a 404 error, presumably because the url is not encoded correctly.

Error Message:

HTTP Request Request GET https://.de/org%2Fproduct%2F_apis%2Fgit%2Frepositories%2Frepo-name?includeParent=true&api-version=6.0-preview.1 failed with status code 404

If the request is executed without the wrongly encoded / the request works.

To Reproduce Steps to reproduce the behavior:

  1. Install plugin
  2. Open AZD window
  3. Log in
  4. See error

Expected behavior Login is successfull

Desktop (please complete the following information):

JetBrains IDE (please complete the following information):

Jonatha1983 commented 2 months ago

Hi @martin-oehlert-mw

Thanks for reporting and sorry for the delay.

Can you please clarify what do you mean by:

If the request is executed without the wrongly encoded / the request works.

martin-oehlert-mw commented 2 months ago

Sure

if i executed the request using this url

https://.de/org/product/_apis/git/repositories/repo-name?includeParent=true&api-version=6.0-preview.1

this works.

In the error message the / gets wrongly encoded (as %2F) and therefor seems to fail

Jonatha1983 commented 2 months ago

@martin-oehlert-mw Thanks for the response. Few more questions:

martin-oehlert-mw commented 2 months ago
  1. yes, just tried it again
  2. with all org access
  3. latest available (2024.1.62)
  4. Its Azure Devops Server (so TFS! :D )
Jonatha1983 commented 2 months ago

And the url you put it include the Collection name right? Meaning in your example you put in the server text field: Https://.de/org

martin-oehlert-mw commented 2 months ago

yeah so my url looks like this https://foobar.de/orgname

Jonatha1983 commented 3 weeks ago

@martin-oehlert-mw hi

I just wanted to let you know that I'm closing the issue for now. Please let me know if you face the same problem, and I will reopen it.