Skip to content
GitLab
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
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • gajimgajim
  • python-nbxmpp
  • Issues
  • #136
Closed
Open
Issue created Jan 16, 2023 by John@diode24

file preview error on invalid link to pdf

Versions:

  • OS: Ubuntu 22.04.1 LTS 22.04 (jammy)
  • GTK Version: 3.24.33
  • PyGObject Version: 3.42.1
  • GLib Version : 2.71.3
  • python-nbxmpp Version: 4.0.0
  • Gajim Version: 1.6.0

Traceback

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nbxmpp/http.py", line 312, in _on_response
    self._input_stream = session.send_finish(result)
gi.repository.GLib.GError: g-io-error-quark: Operation was cancelled (19)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nbxmpp/http.py", line 316, in _on_response
    self._set_failed(HTTPRequestError.CANCELLED)
  File "/usr/lib/python3/dist-packages/nbxmpp/http.py", line 464, in _set_failed
    self._cleanup()
  File "/usr/lib/python3/dist-packages/nbxmpp/http.py", line 489, in _cleanup
    del self._cancellable
AttributeError: _cancellable

Steps to reproduce the problem

  1. enable file preview
  2. post link to a pdf from archive.org with date removed from URL

original link:

https://web.archive.org/web/20081001170454/https://www.adobe.com/devnet/acrobat/pdfs/pdf_reference_1-7.pdf

posted link has date removed:

https://web.archive.org/web/https://www.adobe.com/devnet/acrobat/pdfs/pdf_reference_1-7.pdf

Edited Jan 16, 2023 by John
Assignee
Assign to
Time tracking