question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled python exception in init callback: XMLSyntaxError

See original GitHub issue

with trace on, I see this stacktrace: Okt 18 16:08:49 Pluto collectd[3694]: Unhandled python exception in init callback: XMLSyntaxError: Document is empty, line 1, column 1 (line 1) Okt 18 16:08:49 Pluto collectd[3694]: Traceback (most recent call last): Okt 18 16:08:49 Pluto collectd[3694]: File "/usr/local/lib/python2.7/dist-packages/fritzcollectd/__init__.py", line 294, in callback_init config.init() Okt 18 16:08:49 Pluto collectd[3694]: File "/usr/local/lib/python2.7/dist-packages/fritzcollectd/__init__.py", line 146, in init user=self._fritz_user) Okt 18 16:08:49 Pluto collectd[3694]: File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py", line 323, in __init__ self._read_descriptions(password) Okt 18 16:08:49 Pluto collectd[3694]: File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py", line 335, in _read_descriptions parser = FritzDescParser(self.address, self.port, descfile) Okt 18 16:08:49 Pluto collectd[3694]: File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py", line 194, in __init__ tree = etree.parse(source) Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/etree.pyx", line 3426, in lxml.etree.parse Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 1839, in lxml.etree._parseDocument Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 1865, in lxml.etree._parseDocumentFromURL Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 1769, in lxml.etree._parseDocFromFile Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 1162, in lxml.etree._BaseParser._parseDocFromFile Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 600, in lxml.etree._ParserContext._handleParseResultDoc Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 710, in lxml.etree._handleParseResult Okt 18 16:08:49 Pluto collectd[3694]: File "src/lxml/parser.pxi", line 639, in lxml.etree._raiseParseError Okt 18 16:08:49 Pluto collectd[3694]: XMLSyntaxError: Document is empty, line 1, column 1 (line 1) I am quite unsure if this is an effect of the Fritz Box not answering request or if it is an error somewhere else. This is my config: <Plugin python> Import "fritzcollectd" LogTraces true <Module fritzcollectd> Address "fritz.box" Port 8089 User "collectLog" Password "xxxxxxxxxxx" Hostname "FritzBox" Instance "1" Verbose "True" </Module>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
carlolfcommented, Oct 20, 2018

Thanks also for answering to my problems.

To be more exact on failures, I think the script should check if there was a real connection to Fritzbox on the given port with a valid result before calling the Xml-Parser.

0reactions
fetzerchcommented, Oct 19, 2018

Cool, thanks for reporting back.

Others have mentioned that due to some queries, it can take a while until grafana shows all graphs. Make sure also to play with the zoom. In my dashboard the default is last 7 days, for the beginning you might want to set it to 1-2 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled exception in listener callback - Stack Overflow
I don't know what the right solution here is but the main error is happening because of this statement exec("e + {0}= ({1},{2})".format(z,x ......
Read more >
Exception Handling — Python 3.11.1 documentation
The functions described in this chapter will let you handle and raise Python exceptions. It is important to understand some of the basics...
Read more >
Error at thread exit if FLS callback isn't freed - Visual C++
A process may crash at thread exit with an Access Violation exception if it had dynamically loaded a native C++ DLL that was...
Read more >
AWS Lambda function errors in Python
If Lambda encounters an error, it returns an exception type, message, and HTTP status code that indicates the cause of the error. The...
Read more >
A Comprehensive Guide To Error Handling In Node.js
If you've written JavaScript code for any length of time, you probably know that the callback pattern is heavily used throughout JavaScript code ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found