ALT Linux Bugzilla
– Attachment 11733 Details for
Bug 44098
Bugzilla.logged_in вызывает исключение при использовании REST в python3-module-bugzilla
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Логи ошибки при вызове bzapi.logged_in
create_bug_through_rest_error.log (text/x-log), 1.23 KB, created by
Alexandr Shashkin
on 2022-10-20 16:48:24 MSK
(
hide
)
Description:
Логи ошибки при вызове bzapi.logged_in
Filename:
MIME Type:
Creator:
Alexandr Shashkin
Created:
2022-10-20 16:48:24 MSK
Size:
1.23 KB
patch
obsolete
>Traceback (most recent call last): > File "/home/test/create_bug.py", line 26, in <module> > if not bzapi.logged_in: > File "/usr/lib/python3/site-packages/bugzilla/base.py", line 720, in logged_in > raise e > File "/usr/lib/python3/site-packages/bugzilla/base.py", line 714, in logged_in > self._backend.user_get({"ids": [1]}) > File "/usr/lib/python3/site-packages/bugzilla/_backendrest.py", line 182, in user_get > return self._get("/user", paramdict) > File "/usr/lib/python3/site-packages/bugzilla/_backendrest.py", line 63, in _get > return self._op("GET", *args, **kwargs) > File "/usr/lib/python3/site-packages/bugzilla/_backendrest.py", line 58, in _op > response = self._bugzillasession.request(method, fullurl, data=data, > File "/usr/lib/python3/site-packages/bugzilla/_session.py", line 112, in request > raise type(e)(message).with_traceback(sys.exc_info()[2]) > File "/usr/lib/python3/site-packages/bugzilla/_session.py", line 108, in request > response.raise_for_status() > File "/usr/lib/python3/site-packages/requests/models.py", line 1021, in raise_for_status > raise HTTPError(http_error_msg, response=self) >requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://bugzilla.altlinux.org/rest/user?ids=1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44098
: 11733