xml.parsers.expat.ExpatError: not well-formed (invalid token)

Bug #1316359 reported by Erkan Yilmaz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
heybuddy
New
Undecided
Unassigned

Bug Description

had a crash in heybuddy
nothing else investigated, just reporting so more data can be added in future investigations
(didn't find bug via search)

used versions:
**************
heybuddy 0.2.5
Python 2.7.5+
GTK 2.24.20
PyGTK: 2.24.0

from terminal:
**************
key exceptions settings : initial_dents
key exceptions settings : pull_time
key exceptions settings : link_color
Traceback (most recent call last):
  File "heybuddy.py", line 965, in process_statusesXML
    statuses = self.xmlprocessor.get_statuses(text,is_direct)
  File "/home/YOUR_ACCOUNT/Schreibtisch/heybuddy-0.2.5/XMLProcessor.py", line 18, in get_statuses
    dom = parseString(text)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1931, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 73, column 23

Revision history for this message
jezra (jezra) wrote :

Can you edit the XMLProcessor.py file to dump the XML that is causing the issue?

Something like the following should do the trick
=== modified file 'XMLProcessor.py'
--- XMLProcessor.py 2013-11-28 03:46:50 +0000
+++ XMLProcessor.py 2014-05-06 00:32:26 +0000
@@ -15,7 +15,10 @@
   self.re_server_sub = re.compile(r'/\w+$')
   self.re_zone = re.compile(r'[+|-][0-9]{4}')
  def get_statuses(self,text,is_direct=False):
- dom = parseString(text)
+ try:
+ dom = parseString(text)
+ except:
+ print text
   if is_direct:
    tag='direct_message'
   else:

Revision history for this message
Erkan Yilmaz (erkan77) wrote :
Revision history for this message
Erkan Yilmaz (erkan77) wrote :

happened again, xmp dump here:
http://skilledtests.com/wiki/Heybuddy_error

Revision history for this message
Erkan Yilmaz (erkan77) wrote :

ignore my last comment please

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.