# An invalid response was returned from Discourse","http\_code":"","http\_body":""}

**URL:** https://meta.discourse.org/t/an-invalid-response-was-returned-from-discourse-http-code-http-body/385021
**Category:** WordPress
**Created:** [October 8, 2025, 1:30pm UTC](https://meta.discourse.org/t/an-invalid-response-was-returned-from-discourse-http-code-http-body/385021 "2025-10-08T13:30:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [October 8, 2025, 1:30pm UTC](https://meta.discourse.org/t/an-invalid-response-was-returned-from-discourse-http-code-http-body/385021/1 "2025-10-08T13:30:36Z")

</div>

Updated the wp-discourse plugin, and it breaks things again. Error:

You are not connected to Discourse. Check that your connection settings are correct. If the issue persists, enable connection logs and check Logs.

Connection log:  
[2025-10-08 13:29:13] connection.INFO: check\_connection\_status.failed\_to\_connect {“error”:“wpdc\_response\_error”,“message”:“An invalid response was returned from Discourse”,“http\_code”:“”,“http\_body”:“”}

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/1/9/719aec99efb04280b1709c169fc19b09e6a7455e.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/8/2/e82cafec7dfec32af35981fcd0acde94ab3703dd.png)

I’m at a lost I have not changed anything other than updating the WP-Discourse plugin, I just published a post as usual and noticed that it’s no longer connected.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 8, 2025, 1:33pm UTC](https://meta.discourse.org/t/an-invalid-response-was-returned-from-discourse-http-code-http-body/385021/2 "2025-10-08T13:33:17Z")

</div>

looks similar to this:

> [@Cannot connect Discourse to WordPress](https://meta.discourse.org/t/cannot-connect-discourse-to-wordpress/229073/2):
>
> Hey @CMASFO, welcome to meta slight_smile For this kind of issue please see my response here In particular: I’d recommend you press your hosting provider a bit more, asking them why there’d be an inability to make a cURL request to a domain. If they have some more specific reason to think it’s an issue with the WP Discourse plugin, and not say, an incorrect cURL version on the server (which on the face of it is more likely), they’re welcome to post here, or even pm me, and I’d be happy t…

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [October 8, 2025, 2:33pm UTC](https://meta.discourse.org/t/an-invalid-response-was-returned-from-discourse-http-code-http-body/385021/3 "2025-10-08T14:33:49Z")

</div>

Thanks for hinting me in the right direction. The issue was expired TLS cert. It had expired ~ 4 days ago.

![image](https://global.discourse-cdn.com/meta/optimized/4X/c/8/6/c8602b2d1747c83c1980402924bc6bd1cb5891ab_2_690x23.png)

I use Cloudflare, so I didn’t catch that was the issue. I should have had a 💡 but didn’t at the time, as I was traveling. So I just lowered CF’s SSL/TLS encryption mode from Strict to Full via mobile when the forums had ssl\_browser error.

Anyway today I used the opportunity to switch to the stable branch. Edited `/var/discourse/containers/app.yml` to uncomment “version” and set it to **stable** :

![image](https://global.discourse-cdn.com/meta/original/4X/2/f/1/2f1d3004b8206ba6f5094221d77f9dbc389953f1.png)

Then did:

```plaintext
sudo ./launcher rebuild app

```

Retested forum cert from the blog server:  
 ![image](https://global.discourse-cdn.com/meta/optimized/4X/4/a/9/4a9d884a7787bb0d2d0503e476179e6c77625c50_2_690x20.png)

Works:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/2/1/921fdef7c49efe7861bd7933f11454210bca2dac.png)

So, in summary, this is completely my goof. Sorry and thanks!

**Edit:** checked the cron `crontab -l` (its there) and did a `--force` renewal, which was successful, so the autorenew _should_ work the next time. 🤞

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 7, 2025, 2:34pm UTC](https://meta.discourse.org/t/an-invalid-response-was-returned-from-discourse-http-code-http-body/385021/4 "2025-11-07T14:34:25Z")

</div>

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