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

The mqtt connection cannot be disconnected #13141

Open
1 task done
XiaoMing0000 opened this issue Sep 15, 2024 · 3 comments
Open
1 task done

The mqtt connection cannot be disconnected #13141

XiaoMing0000 opened this issue Sep 15, 2024 · 3 comments
Labels
need-more-info product/api-client protocol/mqtt Issues related to using the MQTT protocol within Postman

Comments

@XiaoMing0000
Copy link

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

The MQTT connection did not disconnect, and the Postman client did not send a DISCONNECT packet.

Steps To Reproduce

  1. Establish an MQTT v5 connection;
  2. Fill in the message content and click the send button;
  3. Click the button to disconnect.

Screenshots or Videos

No response

Operating System

Windows

Postman Version

11.12.0

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

@codenirvana codenirvana added protocol/mqtt Issues related to using the MQTT protocol within Postman product/api-client labels Sep 16, 2024
@jonathanhaviv
Copy link

@XiaoMing0000 would you be able to share a screen recording of the issue? I'm having a bit of trouble trying to replicate this.

@XiaoMing0000
Copy link
Author

postman.mp4

When the Postman client pushes a message to the server using QoS1 or QoS2, if the server returns an incorrect packetIdentifier to the Postman client, the client is unable to disconnect when the "disconnect" button is clicked. The Postman client should disconnect and throw an exception upon receiving an incorrect packetIdentifier, similar to how mqtt.fx disconnects immediately when receiving an incorrect packetIdentifier.

Another issue is that after the Postman client connects to the server, if I do not click the "disconnect" button and instead click the close tab button 'X' on the current MQTT tab, the connection does not disconnect (this was not shown in the video). The connection only disconnects one by one when I close the Postman client. Normally, shouldn't the connection be cleared when the tab is closed?

@jonathanhaviv
Copy link

@XiaoMing0000 Thank you! This additional context was helpful. We'll let you know once we have released a fix for these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info product/api-client protocol/mqtt Issues related to using the MQTT protocol within Postman
Projects
None yet
Development

No branches or pull requests

3 participants