{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-iot-arduino/issues/58","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-iot-arduino","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-iot-arduino/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-iot-arduino/issues/58/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-iot-arduino/issues/58/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-iot-arduino/issues/58","id":383028915,"node_id":"MDU6SXNzdWUzODMwMjg5MTU=","number":58,"title":"Error, client state: -2","user":{"login":"johanso-au","id":5828635,"node_id":"MDQ6VXNlcjU4Mjg2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/5828635?v=4","gravatar_id":"","url":"https://api.github.com/users/johanso-au","html_url":"https://github.com/johanso-au","followers_url":"https://api.github.com/users/johanso-au/followers","following_url":"https://api.github.com/users/johanso-au/following{/other_user}","gists_url":"https://api.github.com/users/johanso-au/gists{/gist_id}","starred_url":"https://api.github.com/users/johanso-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanso-au/subscriptions","organizations_url":"https://api.github.com/users/johanso-au/orgs","repos_url":"https://api.github.com/users/johanso-au/repos","events_url":"https://api.github.com/users/johanso-au/events{/privacy}","received_events_url":"https://api.github.com/users/johanso-au/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T09:32:44Z","updated_at":"2018-11-21T09:32:44Z","closed_at":null,"author_association":"NONE","body":"Getting an \"Error, client state: -2\" error. I'm unsure where to start looking for the root cause, as the CloudIoTCoreMQTTClient::mqttConnect() function doesn't make it clear where 'state' is set.\r\n\r\nI think it may be related to a JWT auth issue, as when I turn on debug, get the generated JWT, and run it through a debugger (https://jwt.io/#debugger) the signature is invalid with my private key.\r\n\r\nIs there any more verbose debug logging that can be used to find out what the cause of an abnormal client state could be?"}}
{"actor":{"display_login":"johanso-au"}}