[lp-bulk-action.py] TraceBack: lazr.restfulclient.errors.Unauthorized: HTTP Error 401: Unauthorized

Bug #1957074 reported by Taihsiang Ho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
canonical-server-hwe-utils
New
Low
Unassigned

Bug Description

When invoking "./lp-bulk-action.py create-series ubuntu-21.10 -s "Ubuntu 21.10"", I will get traceback[1]. However, it seems the new series was still created[2]. Please note I commented out project "bandera" in the script because I don't have permission to view the project.

[1]

Traceback (most recent call last):
  File "./lp-bulk-action.py", line 114, in <module>
 createSeries(lp, project, args.series, args.summary)
  File "./lp-bulk-action.py", line 73, in createSeries
 p.newSeries(name=series, summary=summary)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 607, in call
 extra_headers=extra_headers)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 431, in _request
 raise error
lazr.restfulclient.errors.Unauthorized: HTTP Error 401: Unauthorized
Response headers:
---
content-length: 62
content-security-policy: frame-ancestors 'self';
content-type: text/plain;charset=utf-8
date: Mon, 10 Jan 2022 21:51:45 GMT
server: gunicorn/19.8.1
status: 401
strict-transport-security: max-age=15552000
vary: Accept
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-launchpad-revision: e7c0643e8312dd1220f809fc7eea2f99c0bb9817
x-lazr-notifications: []
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: 7392e376-ca1a-42f4-92cc-f12585d7ceef
x-vcs-revision: e7c0643e8312dd1220f809fc7eea2f99c0bb9817
x-xss-protection: 1; mode=block
---
Response body:
---
b"(<Product at 0x7efe3b7c3278>, 'newSeries', 'launchpad.Driver')"
---

[2] 21.10 series is created and shown in project Kunpeng920 https://launchpad.net/kunpeng920/+series

Revision history for this message
Taihsiang Ho (tai271828) wrote :

Seems the script still create series, set importance as Low.

Changed in canonical-server-hwe-utils:
importance: Undecided → Low
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.