Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven dependency search command not working #766

Closed
Jimmya14 opened this issue Dec 21, 2021 · 3 comments · Fixed by #769
Closed

Maven dependency search command not working #766

Jimmya14 opened this issue Dec 21, 2021 · 3 comments · Fixed by #769
Assignees
Labels
bug Something isn't working upstream

Comments

@Jimmya14
Copy link

Describe the bug
the maven search command for dependencies is not working

To Reproduce
Steps to reproduce the behavior:

  1. Use the add dependency command
  2. search for any dependency
  3. the bar would do the loading animation for a split second then stop

Environments (please complete the following information as much as possible):

  • OS: Windows 10
  • VS Code version: v1.63.2
  • Extension version: v0.34.1

Screenshots
in window log whenever I try to search for a dependency:
image

@Eskibear
Copy link
Member

I can reproduce it.

@Eskibear Eskibear added the bug Something isn't working label Dec 22, 2021
@Eskibear Eskibear self-assigned this Dec 22, 2021
@Eskibear
Copy link
Member

Eskibear commented Dec 22, 2021

When sending request to https://search.maven.org/solrsearch/select?q=azure&rows=50&wt=json, the response was not as expected.

<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n

investigating

@Eskibear
Copy link
Member

Looks like something was changed to maven search API. If no User-Agent specified when sending a request using NodeJS https lib, the service returns 403.

A possible solution is to specify a user agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants