Cannot register disqus id: "The commenting module could not be added because of an error"

Created:

2016-11-16 12:44:10 UTC

Modified:

2016-12-21 19:05:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot register disqus id: "The commenting module could not be added because of an error"

Symptoms

I'm trying to register valid Disqus id in module "Commenting". The following error is shown when click "Apply":

---8<---
The commenting module could not be added because of an error
--->8---

sitebuilder.log
--->8---
2013-07-31T13:53:54+03:00 [ERR] [System] /JsonApi/ exception 'Zend_Http_Client_Exception' with message 'Unable to read response, or response is empty' in /wpb/path/htdocs/include/Zend/Http/Client.php:1018
---8<---

Cause

Access to disqus.com is closed from WPB server or parsed incorrectly:

# curl 'http://disqus.com:80'
# curl 'http://disqus.com:80/api/'
# curl 'http://disqus.com:80/api/3.0'
# curl 'http://disqus.com:80/api/3.0/'
curl: (52) Empty reply from server
# curl 'http://disqus.com:80/api/3.0/forums
curl: (52) Empty reply from server
#
# curl 'http://disqus.com:80/api/3.0/forums/details.json?forum=perfectweddingpa&api_key=JycdRSQ0fvJcwGIZscjWBC9v5R8cnePrboxQoVaH4DLn6tyLBVpBsLwIIMfFZhgN&#39;'
curl: (52) Empty reply from server
#

Here is valid response:

# curl 'http://disqus.com:80/api/3.0/forums/details.json?forum=perfectweddingpa&api_key=JycdRSQ0fvJcwGIZscjWBC9v5R8cnePrboxQoVaH4DLn6tyLBVpBsLwIIMfFZhgN&#39;'
{"code":0,"response":{"name":"Perfect Wedding P.A.","founder":"64265562","settings":{"allowAnonPost":false,"audienceSyncEnabled":false,"allowMedia":true,"hasReactions":true,"ssoRequired":false,"backplaneEnabled":false},"url":"http://www.perfectweddingpa.gr/poioi-eimaste/","favicon":{"permalink":"http://disqus.com/api/forums/favicons/perfectweddingpa.jpg","cache":"http://mediacdn.disqus.com/1375990054/images/favicon-default.png"},"language":"el","id":"perfectweddingpa"}}
#
# curl 'http://disqus.com:80/api/3.0/forums'
{"code":2,"response":"Endpoint method not valid: "}
#

Resolution

Verify firewall rules and networks settings to allow connection to disqus.com.

Have more questions? Submit a request
Please sign in to leave a comment.