Python Forum
ERROR:haproxystats:Error fetching stats - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: ERROR:haproxystats:Error fetching stats (/thread-22422.html)



ERROR:haproxystats:Error fetching stats - deepakkr3110 - Nov-12-2019

ERROR:haproxystats:Error fetching stats from http://x.x.x.x:5222/;csv;norefresh:
('Connection aborted.', BadStatusLine("<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2954829834' from='xxxxx' version='1.0' xml:lang=''><stream:error><xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'></xml-not-well-formed></stream:error></stream:stream>",))


RE: ERROR:haproxystats:Error fetching stats - Larz60+ - Nov-12-2019

whenever you get a connection error, try the URL directly from a browser.
If the browser can't find the site, neither can you.
you are supposed to provide the finished IP address, replacing the 'x's with proper IP component.