-
Notifications
You must be signed in to change notification settings - Fork 8
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
use session instead of login #34
Comments
It can be fixed by making the following change in
But likely this is not the right fix |
I think I have reproduction with basic python (3.6.8) and also enabled debug prints now: this works (from https://github.com/DMTF/python-redfish-library/blob/main/src/redfish/rest/v1.py) :
and this works:
vs fails:
When it fails, first iteration is ok, second is failed (that's why range in the code) working debug info:
failed debug info:
|
found it!!!
vs
reproduces with simple:
also checked the code https://github.com/python/cpython/blob/3.9/Lib/urllib/request.py#L1331 |
OK, I think we have two issues: one is the unsecure_context I outlined before. Even when I run if with a valid token the first time, it fails with an exception. And, then, if I actually modify the community code to provide the unsecure_context in the urrlib_request.open, it works the first time and fails the second one (which is the close that Boris mentioned).
|
I don't see an issue with |
see https://docs.ansible.com/ansible/latest/collections/community/general/redfish_command_module.html#examples
trying something like this:
I get
but fails on
curl seems working...
The text was updated successfully, but these errors were encountered: