On Mittwoch, 27. Oktober 2021, 11:39:29 CEST Nicolas Formichella wrote:
Hello, I'm encountering an issue regarding access through `curl` and python's `requests` against `build.opensuse.org`
Using `osc` when running ``` osc api /source ``` work with no trouble and lists the projects.
But I didn't got that to work outside of `osc`
Whatever I do regarding basic auth headers (build it myself, let curl/requests do it), I get a error 401 with : ``` <status code="anonymous_user"> <summary>Anonymous user is not allowed here - please login</summary> </status> ``` Full connection log : [1]
Password is known good as it works in `osc` (fails even if I try to get it from GNOME-keyring through `python-keyring`)
What could be my issue? try using api.opensuse.org instead of build.o.o
--
Adrian Schroeter
Build Infrastructure Project Manager
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
It works, thanks
Regards
________________________________
De : Adrian Schröter
Hello, I'm encountering an issue regarding access through `curl` and python's `requests` against `build.opensuse.org`
Using `osc` when running ``` osc api /source ``` work with no trouble and lists the projects.
But I didn't got that to work outside of `osc`
Whatever I do regarding basic auth headers (build it myself, let curl/requests do it), I get a error 401 with : ``` <status code="anonymous_user"> <summary>Anonymous user is not allowed here - please login</summary> </status> ``` Full connection log : [1]
Password is known good as it works in `osc` (fails even if I try to get it from GNOME-keyring through `python-keyring`)
What could be my issue?
try using api.opensuse.org instead of build.o.o
--
Adrian Schroeter