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

connection refused #7

Open
oholimoli opened this issue Jul 27, 2021 · 1 comment
Open

connection refused #7

oholimoli opened this issue Jul 27, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@oholimoli
Copy link

Hi, I tried to use this package to list all docker images on our gitlab instance but it didn't work:

File "C:\Users\hofo\Envs\gitlab-registry\lib\site-packages\requests\adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='gitlab.xxxx.comjwt', port=443): Max retries exceeded with url: /auth?client_id=docker&service=container_registry&scope=registry:catalog:* (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001F9920BFEC8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
  • Is the problem caused by HTTPS?
  • Why is the string jwt appended to the host?

Is there another solution for this problem? I don't understand why it is not possible to list all projects with all Docker images and sort by the size, when you are a GitLab admin :(.

BR

Oliver

@IngoMeyer441
Copy link
Member

IngoMeyer441 commented Jul 27, 2021

Hey, thanks for trying this package. 😃
How did you try to use the package? Did you use the package API directly or did you try to use the CLI program?
I am sorry for the bad documentation about the URL format of the needed hosts. If you use the API directly, you must pass the host (both GitLab and registry) in the form https://gitlab.xxxx.com/. Thus, you should get a url like https://gitlab.xxxx.com/jwt/...
Currently checks for the correct form are performed in the CLI, but they should probably be done in the API itself.

@IngoMeyer441 IngoMeyer441 added the bug Something isn't working label Jul 27, 2021
@IngoMeyer441 IngoMeyer441 self-assigned this Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants