We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using hvac I ran into an issue where I kept getting 400: Bad Request when I tried to list secrets.
hvac
The following gives me a 400:
from urllib.request import Request, urlopen urlopen(Request(url='https://server/v1/mount/metadata/folder', headers={'X-Vault-Token': 'my-token'}, method='LIST'))
However using the list=true query parameter and GET:
list=true
from urllib.request import Request, urlopen urlopen(Request(url='https://server/v1/mount/metadata/folder?list=true', headers={'X-Vault-Token': 'my-token'}, method='GET'))
The request works fine.
I've been able to reproduce this issue across Linux/Python 3.7 and Windows/Python 3.9
Could hvac switch to using the query parameter to work around this issue?
The text was updated successfully, but these errors were encountered:
If you initialize hvac.Client with strict_http=True, it will rewrite the LIST requests as GETs with the list query parameter: #689
strict_http=True
Sorry, something went wrong.
No branches or pull requests
When using
hvac
I ran into an issue where I kept getting 400: Bad Request when I tried to list secrets.The following gives me a 400:
However using the
list=true
query parameter and GET:The request works fine.
I've been able to reproduce this issue across Linux/Python 3.7 and Windows/Python 3.9
Could hvac switch to using the query parameter to work around this issue?
The text was updated successfully, but these errors were encountered: