Replies: 3 comments 3 replies
-
@adrians5j Are you running it on nodejs or browser? If nodejs you can add the env var DEBUG=mqttjs* in order to see more logs on your side, if you want try to upload them here and I will give them a look |
Beta Was this translation helpful? Give feedback.
-
Will try, thank you!!
Adrian S.
…On Fri, 5 Apr 2024 at 16:21, Daniel Lando ***@***.***> wrote:
unfortunately I don't see anything wrong from your logs. YOu may get more
logs by using DEBUG=mqtt* as that prints also mqtt-paket logs
—
Reply to this email directly, view it on GitHub
<#1836 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHCI7EMNRBDT75F7FB2QVDY32XOPAVCNFSM6AAAAABFZEJUAKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAMRSGMZDK>
.
You are receiving this because you were mentioned.Message ID: <mqttjs/MQTT
.***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just wanted to conclude this discussion by saying that I've found the issue. It was related to AWS Lambda function / authorizer, which did not return all of the needed IAM permissions. Once I fixed those, everything started working as expected. More info here. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the mqtt.js library in order to interact with the AWS IoT Core endpoint with the following code:
What's interesting is that I can see the published message in the
xyz
topic in the AWS Console / MQTT test client. Great!What I can also see is that there are no messages being printed in my terminal, despite the fact that the
client.subscribe
call did not throw any errors (in other words, topic subscription was successful), and I am able to publish messages on the same topic from the AWS Console / MQTT test client.I've tried multiple things, changing params when connecting, trying different variations of the code, no luck 😩.
My next idea on how to debug is to try enabling IOT CW logs and see if anything is logged in there maybe.
Until then, my question is: anybody have any suggestions on what else to check why nothing is being printed in my terminal?
Thank you!🍻
Beta Was this translation helpful? Give feedback.
All reactions