Skip to content
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

HumioLib does not sanitize URLs in some cases #26

Open
chrisbvt opened this issue Jul 7, 2023 · 0 comments
Open

HumioLib does not sanitize URLs in some cases #26

chrisbvt opened this issue Jul 7, 2023 · 0 comments

Comments

@chrisbvt
Copy link

chrisbvt commented Jul 7, 2023

Describe the bug
HumioLib doesn't sanitize URLs and remove the trailing slash from them in some cases. This causes for weird errors such as the one below:
HumioHTTPException: ('HTTP method not allowed, supported methods: GET', 405)

To Reproduce
Steps to reproduce the behavior:

  1. Initialize the HumioLib with a url to your cluster and a '/' at the end. For example https://myhumiocluster.com/
  2. Attempt to run a query with this client.

Expected behavior
I would expect a more clear answer on the URL being incorrect. Currently it gives the above error which is not accurate to the problem

Desktop (please complete the following information):

  • MacOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant