#unhandledpromiserejection: {Symbol(realm): null, Symbol(state): Proxy, Symbol(headers): Headers}
22 messages · Page 1 of 1 (latest)
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
one sec
unhandledpromiserejection: {Symbol(realm): null, Symbol(state): Proxy, Symbol(headers): Headers}
Log the stacktrace of the unhandledRejection too, not only the promise that rejected
And…? What’s the code on that line?
that's where the trace is
for process.on('unhandledRejection')
unless i'm having a dummy moment
i have it trace on err and emit the label so i know it came from there
That… doesn’t help much does it? The unhandledRejection event emits with two parameters… log the second parameter
Event: 'unhandledRejection'
The 'unhandledRejection' event is emitted whenever a Promise is rejected and no error handler is attached to the promise within a turn of the event loop. When programming with Promises, exceptions are encapsulated as "rejected promises". Rejections can be caught and handled using promise.catch() and are propagated through a Promise chain. The 'unhandledRejection' event is useful for detecting and keeping track of promises that were rejected whose rejections have not yet been handled.
Or remove that event listener (comment it out for example), does your process crash then or keep on running?
sorry
im super noob because i never had this issue. for context, im moving to djs v14 from v13 and rewriting accordingly. i had an issue w the undici package not installing correctly, and now this is my next issue 
with or without the event listener, the process tries logging in again and often repeatedly (without an error if i remove the event listener)
Do you use pm2 or nodemon or something like that?
pm2, but currently this is being ran on my local host/laptop for beta testing
And do you use pm2 on that local host too?
Because then you‘d need to check pm2 logs, there won’t be any errors on the terminal
i use VSC debug console to run it 
With nodemon? Or what process does that actually call?
Running debug console on top of pm2 won’t help you much, as the output said there‘s no debugger available during your runtime
i honestly am not sure ;; i think just node.js tbh