Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P python-nbxmpp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gajim
  • python-nbxmpp
  • Issues
  • #78

Closed
Open
Created May 22, 2019 by Kein Bedarf@scherzgott

Stream parsing error; xml.parsers.expat.ExpatError XML or text declaration not at start of entity

Versions

  • OS: Ubuntu 19.04
  • GTK+ Version: 3.24.8
  • PyGObject Version: 3.32.0
  • python-nbxmpp Version: 0.6.10
  • Gajim Version: 1.1.3+gajim@b63dd2ed

Traceback

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher_nb.py", line 231, in ProcessNonBlocking
    self.Stream.Parse(data)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 362

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 662, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 563, in _process_events
    return IdleQueue._process_events(self, fd, flags)
  File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 411, in _process_events
    obj.pollin()
  File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 451, in pollin
    self._do_receive()
  File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 676, in _do_receive
    self._on_receive(received)
  File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 690, in _on_receive
    self.on_receive(data)
  File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher_nb.py", line 238, in ProcessNonBlocking
    self._owner.Connection.disconnect()
AttributeError: 'NoneType' object has no attribute 'Connection'

Steps to reproduce the problem

... It was idling. Didn't do nothing and disconnected from the internet (don't know why) and after 15-20 minutes later the error occurred.

Edited Jun 28, 2019 by Daniel Brötzmann
Assignee
Assign to
Time tracking