esap-userprofile-python-client generates endless loop of warnings on bad token
@grange writes:
I was trying to get the shopping basket client on the DESY DLaaS enviornment (to combine two things: feedback for them and getting my extension for Rucio done). DESY authenticates against the German FAAI and not ESCAPE IAM. So what I need to do is manually provide the token to the basket. I try this as follows:
shoc = ecl.shopping_client.ShoppingClient(token="<secret>", host="https://sdc-dev.astron.nl/esap-api:5555", connectors=[cruc])
If I try to get the shopping basket (
shoc.get_basket
) I get thrown in an endless loop of warnings:WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled WARNING:esap_client.shopping_client:JupyterHub without Authstate enabled [...]
I looked up that warning in the code and indeed it is inside a while loop so I assume that the condition of that loop never becomes true in this situation
Edited by John Swinbank