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

Don't retry when MQTT response is unauthorized #213

Merged
merged 2 commits into from
May 20, 2024

Conversation

justmobilize
Copy link
Collaborator

@justmobilize justmobilize commented May 13, 2024

Update connection code to break out of the retry look when getting either a Incorrect username/password or Unauthorized response.

Noticed in #211, although doesn't fix the original post

Tested on a UM FeatherS3

@justmobilize justmobilize marked this pull request as ready for review May 13, 2024 21:44
@justmobilize
Copy link
Collaborator Author

@brentru willing to take a look?

@dhalbert dhalbert requested a review from brentru May 13, 2024 22:45
@dhalbert
Copy link
Contributor

I defer to @brentru on this.

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, but I would be very interested if the close socket fixes some folks' problems.

@justmobilize
Copy link
Collaborator Author

@dhalbert So this shouldn't really solve anything other then getting a better error, and making it easier to debug. Unless the error they get is really retriable (which I asked above)

@dhalbert dhalbert merged commit d412e9a into adafruit:main May 20, 2024
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 21, 2024
Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 7.8.0 from 7.7.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#190 from vladak/recv_timeout_vs_keep_alive
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#213 from justmobilize/no-retry-on-unauthorized

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
@justmobilize justmobilize deleted the no-retry-on-unauthorized branch May 21, 2024 05:13
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

Successfully merging this pull request may close these issues.

2 participants