eclipse-paho / eclipse-paho/paho.mqtt.javascript

Stacktrace not printed

Open
#259 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

I face the same issue as the user here (please look at his answer, the More detailed story
https://stackoverflow.com/questions/66463611/paho-mqtt-js-client-loses-connection-to-mosquitto-broker-when-i-publish-or-recei

in line 1255 and in line 1444 it is
var errorStack = ((error.hasOwnProperty("stack") == "undefined") ? error.stack.toString() : "No Error Stack Available");
so when it faces an error, it prints No Error Stack Available instead of giving the stack. From what the stackoverflow user says and seems logical, it should be reversed.
Could this be fixed?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.