Git Product home page Git Product logo

Comments (4)

jph00 avatar jph00 commented on July 22, 2024 2

Thanks for the report @choldgraf . I've just pushed a update so you now don't need to URL-quote some parameters.

from ghapi.

hamelsmu avatar hamelsmu commented on July 22, 2024

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!

from ghapi.

choldgraf avatar choldgraf commented on July 22, 2024

Sure - for example, let's say I wanted to update this label:

https://github.com/jupyterhub/nativeauthenticator/labels/help%20wanted

to help-wanted (instead of help wanted)

if I ran:

api.issues.update_label("jupyterhub", "nativeauthenticator", "help wanted", "help-wanted")

I get

HTTP400BadRequestError: HTTP Error 400: Bad Request

if instead I run

api.issues.update_label("jupyterhub", "nativeauthenticator", quote("help wanted"), "help-wanted")

then it works

from ghapi.

choldgraf avatar choldgraf commented on July 22, 2024

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

from ghapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.