{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/mosquitto/issues/880","repository_url":"https://api.github.com/repos/eclipse/mosquitto","labels_url":"https://api.github.com/repos/eclipse/mosquitto/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/mosquitto/issues/880/comments","events_url":"https://api.github.com/repos/eclipse/mosquitto/issues/880/events","html_url":"https://github.com/eclipse/mosquitto/issues/880","id":340590968,"node_id":"MDU6SXNzdWUzNDA1OTA5Njg=","number":880,"title":"Mosquitto 1.5 rejecting Nyamuk connection","user":{"login":"tronar","id":5940494,"node_id":"MDQ6VXNlcjU5NDA0OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5940494?v=4","gravatar_id":"","url":"https://api.github.com/users/tronar","html_url":"https://github.com/tronar","followers_url":"https://api.github.com/users/tronar/followers","following_url":"https://api.github.com/users/tronar/following{/other_user}","gists_url":"https://api.github.com/users/tronar/gists{/gist_id}","starred_url":"https://api.github.com/users/tronar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tronar/subscriptions","organizations_url":"https://api.github.com/users/tronar/orgs","repos_url":"https://api.github.com/users/tronar/repos","events_url":"https://api.github.com/users/tronar/events{/privacy}","received_events_url":"https://api.github.com/users/tronar/received_events","type":"User","site_admin":false},"labels":[{"id":405442587,"node_id":"MDU6TGFiZWw0MDU0NDI1ODc=","url":"https://api.github.com/repos/eclipse/mosquitto/labels/not%20a%20bug","name":"not a bug","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-12T11:04:01Z","updated_at":"2018-07-14T03:34:22Z","closed_at":null,"author_association":"NONE","body":"New to MQTT, playing with python clients from OpenWRT to Ubuntu 16.04 broker.\r\n\r\nUsing Nyamuk, seemed fine and small. Broker was distro provided 1.4.8 if memory serves.\r\nWanted to have different ACLs per listener (direct for sensors RW, WS for dashboards, RO) so moved to 1.5. \r\n\r\nNyamuk connections were then rejected. Changing to \"protocol=3\" solved the issue.\r\n\r\nNow from Nyamuk docs \"protocol=4\" wich is the default relates to MQTT 3.1.1 and \"protocol=3\" relates to 3.1. I do not know enough, but something changed in 1.5 that breaks it, and it seemed worth reporting."},"comment":{"url":"https://api.github.com/repos/eclipse/mosquitto/issues/comments/404995570","html_url":"https://github.com/eclipse/mosquitto/issues/880#issuecomment-404995570","issue_url":"https://api.github.com/repos/eclipse/mosquitto/issues/880","id":404995570,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDk5NTU3MA==","user":{"login":"toast-uz","id":29350155,"node_id":"MDQ6VXNlcjI5MzUwMTU1","avatar_url":"https://avatars1.githubusercontent.com/u/29350155?v=4","gravatar_id":"","url":"https://api.github.com/users/toast-uz","html_url":"https://github.com/toast-uz","followers_url":"https://api.github.com/users/toast-uz/followers","following_url":"https://api.github.com/users/toast-uz/following{/other_user}","gists_url":"https://api.github.com/users/toast-uz/gists{/gist_id}","starred_url":"https://api.github.com/users/toast-uz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toast-uz/subscriptions","organizations_url":"https://api.github.com/users/toast-uz/orgs","repos_url":"https://api.github.com/users/toast-uz/repos","events_url":"https://api.github.com/users/toast-uz/events{/privacy}","received_events_url":"https://api.github.com/users/toast-uz/received_events","type":"User","site_admin":false},"created_at":"2018-07-14T03:34:22Z","updated_at":"2018-07-14T03:34:22Z","author_association":"CONTRIBUTOR","body":"I've reconfirmed this by replacing the line 123 in nyamuk/mqtt_pkt.py from  ```self.remaining_length = 12 + payload_len``` to ```self.remaining_length = 10 + payload_len```. You can find to connect mosquitto v1.5 on mqtt v3.1.1 after the patch."}}
{"actor":{"display_login":"toast-uz"}}