Comments (2)
Hello, I would like to use Bluebird instead of native Promises because native stack traces give me no clue where to look for errors that are happening
We fixed native stack traces in Node.js with async functions and native promises a while ago (circa 2018) - can you outline what doesn't work?
This seems to indicate that the native Promise doesn't get overwritten
I can't extract the tar.gz file here (on mobile) can you upload a gist or a gh repo?
from bluebird.
We fixed native stack traces in Node.js with async functions and native promises a while ago (circa 2018) - can you outline what doesn't work?
I added Promises around Node's http
callback-based utility functions and I'm getting an error like this one:
node:events:491
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED ::1:80
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
Emitted 'error' event on ClientRequest instance at:
at Socket.socketErrorListener (node:_http_client:502:9)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 80
}
Node.js v18.14.0
The error itself is pretty straightforward, but stack trace doesn't show where in my code does this call originate. After Googling, I learned that Bluebird is supposedly capable of longer stack traces and I want to check if it would do the job here.
I can't extract the tar.gz file here (on mobile) can you upload a gist or a gh repo?
Sure thing: https://gist.github.com/hbielenia/6dc79ded33f461dcf971002cd077b554
from bluebird.
Related Issues (20)
- UnhandledPromiseRejection(s) from .some, .any, etc HOT 1
- Minified version throws errors HOT 4
- Debugging is enabled by default HOT 1
- Travis-ci: builds are failing for node.js 0.10, 0.12,4,5 versions for AMD64 HOT 1
- `resolve` and `reject` returned from `.defer()` are not bound to `promise`
- Possibly a bug in OperationError wrapping
- CLS is sometimes lost when using cls-hooked without cls-bluebird
- Error finalising an async function promise => this._passThrough is not a function HOT 4
- Bluebird module generates output spam in npm v7 during installation HOT 2
- perhaps deprecate the npm package? HOT 6
- when i use npm test in this project ,i meet a error with `Error: jshint exited with code: 2`
- Please build and upload in npm new version HOT 2
- Certificate error for bluebird documentation site
- Feature: use ES6 proxy to support all methods on promised objects HOT 1
- "Cannot promisify an API that has normal methods with 'Async'-suffix\n\n See http://goo.gl/MqrFmX\n
- Vulnerable to memory leak HOT 1
- How to enable cancellation correctly? HOT 1
- Vulnerable dependencies (indirect security issues) HOT 4
- Promise concurrency to nodejs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluebird.