Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token class not returning the Error Message details of connectionFailure #450

Open
ShankarPendyala opened this issue Aug 4, 2023 · 1 comment
Labels
upstream Problem with upstream library

Comments

@ShankarPendyala
Copy link

The native library is providing Reason code, return code and error message details. However, these details got suppressed in the token class.
Application callback are getting token objects and which has public method to get ReasonCode and ReturnCode but not the error message.
Few observations: For Connection Failures, most of the times paho returning ReasonCode:255 and Return Code: -1
This information is insufficient to find out the actual cause of connection failure, the failure may be due to network issue, certificate issue, TLS hand shake error , socket error etc

No proper reason code or error message available to extract this info.

Can someone please clarify our understanding and suggest how to get the relevant info on connection failures?

@fpagliughi fpagliughi modified the milestone: v1.3 Nov 13, 2023
@fpagliughi
Copy link
Contributor

fpagliughi commented Nov 13, 2023

This is a problem with the upstream Paho C library that I would really like to get fixed. That library often determines the problem, logs it, then doesn't pass that information back up to the caller... which in this case is the C++ library wrapper and your application. I have an old issue in that library requesting additional details...

eclipse/paho.mqtt.c#937

The string message that sometimes bubbles up from the library might have a little more info, but is still pretty vague. I can look at adding that if it might help.

@fpagliughi fpagliughi added the upstream Problem with upstream library label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Problem with upstream library
Projects
None yet
Development

No branches or pull requests

2 participants