# An unexpected error occurred: HTTPSConnectionPool

**URL:** https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352
**Category:** Help
**Created:** [January 24, 2022, 5:44pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352 "2022-01-24T17:44:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jeffsani](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jeffsani/32/6211_2.png) [@jeffsani](https://community.letsencrypt.org/u/jeffsani)
#### Post date: [January 24, 2022, 5:44pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/1 "2022-01-24T17:44:48Z")

</div>

An unexpected error occurred:  
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org)', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('\<urllib3.connection.HTTPSConnection object at 0x7fa65050c940\>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))  
Ask for help or search for solutions at [https://community.letsencrypt.org](https://community.letsencrypt.org). See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

root@letsencrypt:/etc# dig [acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org) @8.8.8.8

; \<\<\>\> DiG 9.16.1-Ubuntu \<\<\>\> [acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org) @8.8.8.8  
;; global options: +cmd  
;; Got answer:  
;; -\>\>HEADER\<\<- opcode: QUERY, status: NOERROR, id: 56221  
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:  
; EDNS: version: 0, flags:; udp: 512  
;; QUESTION SECTION:  
;[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org). IN A

;; ANSWER SECTION:  
[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org). 7200 IN CNAME [prod.api.letsencrypt.org](http://prod.api.letsencrypt.org).  
[prod.api.letsencrypt.org](http://prod.api.letsencrypt.org). 300 IN CNAME [ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com](http://ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com).  
[ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com](http://ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com). 300 IN A 172.65.32.248

;; Query time: 48 msec  
;; SERVER: 8.8.8.8#53(8.8.8.8)  
;; WHEN: Mon Jan 24 17:31:31 UTC 2022  
;; MSG SIZE rcvd: 155

root@letsencrypt:/etc#

Is my IP blocked?

---

<div class="post-metadata">

### Author: ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)
#### Post date: [January 24, 2022, 5:48pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/2 "2022-01-24T17:48:50Z")

</div>

That is not the usual message when an IP is blocked.

But, you will need to share your IP address or domain name for that to be checked.

Is this a persistent problem? Or a temp one as noted in the message?

---

<div class="post-metadata">

### Author: ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)
#### Post date: [January 24, 2022, 5:52pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/3 "2022-01-24T17:52:16Z")

</div>

> [@MikeMcQ](#):
>
> That is not the usual message when an IP is blocked.
> 
> But, you will need to share your IP address or domain name for that to be checked.

This error is fully client-side, so has nothing to do with being blocked or not.

---

<div class="post-metadata">

### Author: ![jeffsani](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jeffsani/32/6211_2.png) [@jeffsani](https://community.letsencrypt.org/u/jeffsani)
#### Post date: [January 24, 2022, 5:52pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/4 "2022-01-24T17:52:39Z")

</div>

My IP is 76.22.1.7. It is a persistent problem now. I have not encountered this before.

---

<div class="post-metadata">

### Author: ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)
#### Post date: [January 24, 2022, 5:52pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/5 "2022-01-24T17:52:57Z")

</div>

Is the IP `8.8.8.8` also set up as your hosts DNS server? I.e., in `/etc/resolv.conf`?

---

<div class="post-metadata">

### Author: ![jeffsani](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jeffsani/32/6211_2.png) [@jeffsani](https://community.letsencrypt.org/u/jeffsani)
#### Post date: [January 24, 2022, 6:03pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/6 "2022-01-24T18:03:35Z")

</div>

root@letsencrypt:/etc/netplan# systemd-resolve --status | grep 'DNS Servers' -A2  
DNS Servers: 8.8.8.8  
8.8.4.4  
192.168.121.20  
root@letsencrypt:/etc/netplan#

---

<div class="post-metadata">

### Author: ![jeffsani](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jeffsani/32/6211_2.png) [@jeffsani](https://community.letsencrypt.org/u/jeffsani)
#### Post date: [January 24, 2022, 6:05pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/7 "2022-01-24T18:05:55Z")

</div>

Strange. Just tried this again and now it seems to be working. Sorry for firedrill

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [January 24, 2022, 9:19pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/8 "2022-01-24T21:19:05Z")

</div>

> [@jeffsani](#):
>
> 192.168.121.20

Does that DNS server work?

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)
#### Post date: [February 23, 2022, 9:19pm UTC](https://community.letsencrypt.org/t/an-unexpected-error-occurred-httpsconnectionpool/170352/9 "2022-02-23T21:19:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
