Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

I am getting this problem while pushing the images to registry.

I'm using Ubuntu server inside Ubuntu docker installed, and inside the docker created docker registry container and I have an issue while while registry is integrating with gitlab.

Both gitlab and registry are on same server.

I have created a registry under same domain of gitlab.

no code

Get https://someurl:8000/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

like image 513
Abhay Chowdary Avatar asked Aug 20 '19 09:08

Abhay Chowdary


2 Answers

Deleting all other DNS server settings except 8.8.8.8 resolved the issue for me.

On mac OS:

enter image description here

like image 55
Aziz Avatar answered Sep 20 '22 11:09

Aziz


I was getting the same error (on Windows): enter image description here

In my case, it was an issue with the proxy. So I:

  • started px (NTLM would also make it) configured on http://localhost:3128
  • configured the proxy in Docker > Settings > Resources :

enter image description here

This solved the error:

enter image description here

like image 44
Ivan dal Bosco Avatar answered Sep 18 '22 11:09

Ivan dal Bosco