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

MQTT authorization fails #58

Closed
snekcz opened this issue Nov 8, 2022 · 3 comments
Closed

MQTT authorization fails #58

snekcz opened this issue Nov 8, 2022 · 3 comments

Comments

@snekcz
Copy link

snekcz commented Nov 8, 2022

Hi,

I have just found this extension and it looks very interesting. Thanks for it.

However, when I try to connect to MQTT server which requires authorization it fails.
Call:

MQTT tcp://localhost:8883
Topic: test/topic 
username: user
password: password

fails with message Client mqttjs_c61e50e4 disconnected, not authorised..

When I use the same values from within a Node.js app, the connection is successful.

Looks like the username and password are not passed to the MQTT server.

@AnWeber
Copy link
Contributor

AnWeber commented Nov 8, 2022

@snekcz An error has crept in. This will be corrected with the next release. Workaround in the meantime would be the following notation

{{
   request.options = {
      username: "user",
      password: "password"
  };
}}

MQTT tcp://localhost:8883
Topic: test/topic 

fixed with AnWeber/httpyac@5d266a5

@snekcz
Copy link
Author

snekcz commented Nov 9, 2022

@AnWeber Thanks a lot for the workaround and fix.

@AnWeber
Copy link
Contributor

AnWeber commented Nov 13, 2022

fix released with v5.8.1

@AnWeber AnWeber closed this as completed Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants