question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remove annoying "double callback" warning

See original GitHub issue

i’d rather have an error thrown than console.warn('double callback!')

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:54 (25 by maintainers)

github_iconTop GitHub Comments

4reactions
MattCaincommented, Feb 26, 2014

I’m getting the double callback message when testing (with mocha) the GET routes of my API:

it('should get the account metadata', function(done) {
    request.get('https://***/api/user/1')
    .end(function(e, res) {
        expect(res.body).to.have.property('_id');
        expect(res.body).to.have.property('created');
        done();
    });
});

None of my POST/PUT/DELETE requests are getting it and they’re in the same format. What’s causing it in this case?

1reaction
vizathcommented, Dec 23, 2016

I cannot reproduce my use case on 3.3.1 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

remove annoying "double callback" warning #313 - GitHub
Same issue with 'double callback!' with version 1.8.4. I use PM2 with node.js. When superagent's timeout exceeded I log the error and run ......
Read more >
Debugging double-callback bugs in node.js
One of the most frustrating things that happens in a large node.js application is a double callback bug. They're usually simple mistakes ...
Read more >
How to suppress annoying stream of warnings from ...
I would say the best way to do this is to disable setOptimizeCoefficients and then do that manually after seg.segment .
Read more >
Too much warning messages while controlling ... - PX4 Discuss
When my mission is completed, I stop offboard mode; Command land; Disarm. During these operations I am periodically receiving telemetry messages ...
Read more >
React: Stop checking if your component is mounted - Medium
Here is how we overcame the tedious process of getting rid of all our setState warnings, without checking if our components are mounted....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found