-
Notifications
You must be signed in to change notification settings - Fork 66
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
Remove need to URL-quote some parameters #54
Comments
Do you mind sharing the full code of what you were trying to do with an example of what failed? This would help greatly! I can then use this directly in the docs! |
Sure - for example, let's say I wanted to update this label: https://github.com/jupyterhub/nativeauthenticator/labels/help%20wanted to if I ran: api.issues.update_label("jupyterhub", "nativeauthenticator", "help wanted", "help-wanted") I get
if instead I run api.issues.update_label("jupyterhub", "nativeauthenticator", quote("help wanted"), "help-wanted") then it works |
This doesn't always happen for things that have spaces in them (e.g., I am able to set labels on issues with spaces in them without escaping them), but for some reason the error pops up sometimes |
Thanks for the report @choldgraf . I've just pushed a update so you now don't need to URL-quote some parameters. |
I just found a gotcha where I was trying to update a github label that had a space in it. Trying to do so was raising a 400 error. I fixed it by doing:
It would be helpful to either automate this under-the-hood, or to raise a more helpful error that suggests this might be the issue.
The text was updated successfully, but these errors were encountered: