Title: Error connecting to api.wordpress.org
Last modified: March 2, 2025

---

# Error connecting to api.wordpress.org

 *  [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/)
 * Hello!
 * My WordPress install can’t connect to api.wordpress.org.
 * **_SSL\_connect: Connection reset by peer in connection to api.wordpress.org:
   443 _**
 * I have a VPS, with Debian 11, Nginx, PHP 8.3.
 *     ```wp-block-code
       openssl versionOpenSSL 1.1.1w  11 Sep 2023
       ```
   
 * If I try in terminal: **curl -v [https://api.wordpress.org](https://api.wordpress.org)**
   or **curl -v [https://wordpress.org](https://wordpress.org)**
 * **Output: **
 *     ```wp-block-code
       *   Trying 198.143.164.251:443...* Connected to api.wordpress.org (198.143.164.251) port 443 (#0)* ALPN, offering h2* ALPN, offering http/1.1* successfully set certificate verify locations:*  CAfile: /etc/ssl/certs/ca-certificates.crt*  CApath: /etc/ssl/certs* TLSv1.3 (OUT), TLS handshake, Client hello (1):* OpenSSL SSL_connect: Connection reset by peer in connection to api.wordpress.org:443 * Closing connection 0curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to api.wordpress.org:443 
       ```
   
 * I am able to ping api.wordpress.org. All Debian packages are up to date. (apt
   update && apt upgrade) I also tried rebooting the VPS. Another VPS with same 
   Debian and OpenSSL version working great.
 * Do you have any idea? Thank you for helping.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-connecting-to-api-wordpress-org%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [jaygala](https://wordpress.org/support/users/jaygala/)
 * (@jaygala)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337145)
 * I came here because this exact thing is happening to me. I was about to write
   a post but saw yours. 
   The only thing I found was that my VPS’s IP is listed 
   on SpamHaus block list, which I don’t have control over since this is a VPS that
   I share with other people. AI says WordPress’s CDN might block connections based
   on SpamHaus blocklist. The cause might be something completely different though.
 *  Thread Starter [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337150)
 * I checked my IP, and yes, my subnet is on the list unfortunately.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337236)
 * Then you would have to contact your hoster’s support and ask for an IP in a different
   subnet. Or move to another hoster. Or hope that the listing will be removed at
   some point.
 *  [jaygala](https://wordpress.org/support/users/jaygala/)
 * (@jaygala)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337246)
 * So it is confirmed that a Spamhaus block can result in WordPress.org blocking
   the IP?
 *  Thread Starter [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337258)
 * The IP address I got from my VPS provider is on this list since 2024, but I have
   this API problem since yesterday.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337576)
 * Then I would recommend that you first contact your hoster’s support team.
 *  [Jorge Luiz](https://wordpress.org/support/users/jluizsouzadev/)
 * (@jluizsouzadev)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337671)
 * Did you already enable the _[WP debugging mode](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)_
   for trying to get more accurate information about your issue?
 *  Thread Starter [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337708)
 * The problem is that it may not be the spamhaus list that is causing the problem.
   It would be nice if a wordpress API operator could comment on the issue.
 *  [Jorge Luiz](https://wordpress.org/support/users/jluizsouzadev/)
 * (@jluizsouzadev)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18337743)
 * Was the _IP_ already _removed_ from Spamhaus list?
 * Was the IP already _changed_ to a different subnet as [@threadi](https://wordpress.org/support/users/threadi/)
   suggested?
 * More importantly, did you already _back your site up_ just in case something 
   goes wrong?
 *  [jaygala](https://wordpress.org/support/users/jaygala/)
 * (@jaygala)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18338285)
 * Guys, we are looking form confirmation that a Spamhaus block can result in WordPress
   blocking the IP. You are suggesting all kinds of changes without any confirmation
   that this might be the issue. I personally would find such actions by WordPress
   very questionable.
   The problem might be something completely different.
 *  Thread Starter [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18339018)
 * That’s right. Maybe we can solve the issue for us with an IP change, but the 
   root cause will be still there and it can produce problems to other users.
    -  This reply was modified 1 year, 3 months ago by [wpapi](https://wordpress.org/support/users/bindzsirp/).
 *  Thread Starter [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18339273)
 * For me it’s working again. I did not do anything.
 *  [jaygala](https://wordpress.org/support/users/jaygala/)
 * (@jaygala)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18339304)
 * Weird, now it’s working for me too. That must mean it was caused by something
   on WordPress.org’s side.
 *  Thread Starter [wpapi](https://wordpress.org/support/users/bindzsirp/)
 * (@bindzsirp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18351071)
 * And again… not working.
 *  [Jorge Luiz](https://wordpress.org/support/users/jluizsouzadev/)
 * (@jluizsouzadev)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18351250)
 * > _**curl -v [https://api.wordpress.org](https://api.wordpress.org/) **or **curl-
   > v [https://wordpress.org](https://wordpress.org/)**_
 * I’ve just tested both commands above and all seem normal for me.
 * You must look carefully into the _server-side_. And if it’s _too complex_ for
   you, to reach out your hosting support to ask them for help.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Error connecting to api.wordpress.org’ is closed to new replies.

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 4 participants
 * Last reply from: [Jorge Luiz](https://wordpress.org/support/users/jluizsouzadev/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/error-connecting-to-api-wordpress-org/#post-18351250)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
