Code Monkey home page Code Monkey logo

Comments (7)

avolfson avatar avolfson commented on August 25, 2024

On further investigation, it looks like both the uri dimension and the status code issue are resolved by using res.on('finish', () => { instead of req.on('end', () => {
Happy to make a PR unless this is just some quirk in my setup.

from node-measured.

fieldju avatar fieldju commented on August 25, 2024

from node-measured.

avolfson avatar avolfson commented on August 25, 2024

from node-measured.

avolfson avatar avolfson commented on August 25, 2024

Created an integration test to show the failure... but it actually works 😮
#59

The cause appears to be app.use(express.json()). If (and only if) I don't pass a Content-type express.json() is listening to, the dimensions come through properly.

from node-measured.

fieldju avatar fieldju commented on August 25, 2024

I saw that the build for #58 is failing, I assume you are going to work through that and update your PRs to get this issue closed?

from node-measured.

avolfson avatar avolfson commented on August 25, 2024

I have the fix for the failing build, but was holding off until I was able to produce an integration test that actually showed the issue. I now have, you can see it here: https://github.com/avolfson/node-measured/compare/master...avolfson:avolfson-patch-57-it?expand=1 & avolfson@31aeae8

This failing test requires use of express.json() as a middleware. @fieldju, do you consider this valid? If so, I'll add it to the PR with the fix & unit tests as well. Appreciate any other feedback as well.

from node-measured.

fieldju avatar fieldju commented on August 25, 2024

Closed by #59

from node-measured.

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.