-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do_access_token_request throws a requests.exceptions.Timeout #767
Comments
kwarg: https://github.com/OpenIDC/pyoidc/blob/master/src/oic/oauth2/base.py#L29 |
What did you have in mind? https://github.com/OpenIDC/pyoidc/blob/master/src/oic/utils/rp/__init__.py#L32
https://github.com/OpenIDC/pyoidc/blob/master/src/oic/oic/__init__.py#L327
https://github.com/OpenIDC/pyoidc/blob/master/src/oic/oauth2/__init__.py#L169
Invoking the PBase constructor via super()?
|
It looks like not Clients take the argument... I am not sure why are you using the Client from The other option is to redefine the The switch to using |
It's some sample code that was written by someone else that I have been asked to look at (i.e., it was working but it's not working now). The code is using According to the change log the 'Settings' functionality has not yet been released:
The https://github.com/OpenIDC/pyoidc/blob/1.2.x/src/oic/oic/__init__.py#L323
|
wouldn't it also make some sense to raise a custom Timeout exception instead of having the |
Ok, so what I did was:
Now I am receiving a:
I'll do some more investigation ... |
In that case, you will need to overload the Yes, various errors from library should be catched and rethrown as our own errors. |
I have a Relying Party that receives a
requests.exceptions.Timeout
when it invokesdo_access_token_request
:Is it possible to set the timeout?
The text was updated successfully, but these errors were encountered: