Giter VIP home page Giter VIP logo

Comments (7)

fatso83 avatar fatso83 commented on June 16, 2024 1

Great find! Sometimes PRs slip throug the cracks :-) Thank you!

from nise.

fatso83 avatar fatso83 commented on June 16, 2024

Probably happened in 082f8e8ab3f8b5d6332550dd05c5b3c6fed82d91, going from [email protected] to [email protected]. Moving this issue over to the nise subproject.

from nise.

fatso83 avatar fatso83 commented on June 16, 2024

@scottohara, if you get a chance to do a git bisect to track down which commit introduced this in nise it would be very helpful.

from nise.

scottohara avatar scottohara commented on June 16, 2024

Thanks @fatso83.

git bisect shows the error is in commit d0032f7

This is the only change between v1.3.2 and v1.3.3.

Further analysis shows that the error only occurs if the value of the header being set is numeric

It looks like there's already a PR with a fix for this very issue (#48); so presumably all that needs to happen is to merge that PR and cut a new v1.3.4 release?

from nise.

fatso83 avatar fatso83 commented on June 16, 2024

I closed #48 because it's incorrect to supply a non-string value when setting a header value. That means supplying headers: {"X-FOO": 1} is invalid and should (?) throw an error. The alternative would be to either ignore the error and set the value to "" (empty string) or stringify the value. The latter can give unexpected results, so I'd rather be strict about this. I am thinking we should "fix" this by just giving a better error message. Test libs shouldn't be slack.

from nise.

fatso83 avatar fatso83 commented on June 16, 2024

So, it's not the case that supplying headers is wrong, it's supplying invalid values that fails. In that respect, this isn't a bug, but we should aim to improve the feedback.

from nise.

fatso83 avatar fatso83 commented on June 16, 2024

See PR #53

from nise.

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.