this is the traceback I got when I tried to add a crash report to an
existing ticket. I'm using Xubuntu 25.04.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 668, 
in check_end_user_authorization
    credentials.exchange_request_token_for_access_token(self.web_root)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 217, 
in exchange_request_token_for_access_token
    response, content = _http_post(url, headers, params)
                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 87, 
in _http_post
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 401: Unauthorized
Response headers:
---
content-length: 57
content-security-policy: frame-ancestors 'self';
content-type: text/plain;charset=utf-8
date: Mon, 27 Jan 2025 18:57:59 GMT
server: gunicorn
status: 401
strict-transport-security: max-age=15552000
vary: Cookie,Authorization
www-authenticate: OAuth realm="https://api.launchpad.net";
x-content-type-options: nosniff
x-content-type-warning: guessed from content
x-frame-options: SAMEORIGIN
x-launchpad-revision: 4320d60786f71ace1040d24263eb30d3a5cc7d6b
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: 7c95cf6c-c6c5-46ce-ad5c-d843571364b9
x-vcs-revision: 4320d60786f71ace1040d24263eb30d3a5cc7d6b
x-xss-protection: 1; mode=block
---
Response body:
---
b'Request token has not yet been reviewed. Try again later.'
---

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 660, in <module>
    app.run_argv()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 918, in run_argv
    return self.run_update_report()
           ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 746, in 
run_update_report
    if not self.crashdb.can_update(self.args.update_report):
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 
563, in can_update
    bug = self.launchpad.bugs[crash_id]
          ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 
166, in launchpad
    self.__launchpad = Launchpad.login_with(
                       ~~~~~~~~~~~~~~~~~~~~^
        "apport-collect",
        ^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        version="1.0",
        ^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 693, in 
login_with
    return cls._authorize_token_and_login(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        authorization_engine.consumer,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<8 lines>...
        version,
        ^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 444, in 
_authorize_token_and_login
    credentials = authorization_engine(credentials, credential_store)
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 602, 
in __call__
    self.make_end_user_authorize_token(credentials, request_token_string)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 693, 
in make_end_user_authorize_token
    self.wait_for_end_user_authorization(credentials)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 687, 
in wait_for_end_user_authorization
    self.check_end_user_authorization(credentials)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 680, 
in check_end_user_authorization
    raise EndUserNoAuthorization(e.content)
launchpadlib.credentials.EndUserNoAuthorization: b'Request token has not yet 
been reviewed. Try again later.'

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2096327

Title:
  apport cannot upload blobs to launchpad - X-Launchpad-Blob-Token
  missing from http response -> "assert ticket"

Status in Launchpad itself:
  Confirmed
Status in apport package in Ubuntu:
  Confirmed

Bug description:
  The tale is slightly convoluted. After doing an "apt upgrade"
  yesterday, xsane and simple-scan started failing: scanner detected,
  but could not scan. Trying to report it with ubuntu-bug then crashed
  with the following error:

  $ sudo ubuntu-bug simple-scan
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 650, in <module>
      app.run_argv()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 917, in run_argv
      return self.run_report_bug()
             ^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 740, in 
run_report_bug
      self.file_report()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 1788, in 
file_report
      upthread.exc_raise()
    File "/usr/lib/python3/dist-packages/apport/REThread.py", line 67, in 
exc_raise
      raise self._exception[1].with_traceback(self._exception[2])
    File "/usr/lib/python3/dist-packages/apport/REThread.py", line 42, in run
      self._retval = self.__target(*self.__args, **self.__kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", 
line 222, in upload
      ticket = upload_blob(blob_file, progress_callback, 
hostname=self.get_hostname())
               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", 
line 1246, in upload_blob
      assert ticket
             ^^^^^^
  AssertionError

  This is a blocker for me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/launchpad/+bug/2096327/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to