{"action":"created","issue":{"url":"https://api.github.com/repos/ocilo/skype-http/issues/39","repository_url":"https://api.github.com/repos/ocilo/skype-http","labels_url":"https://api.github.com/repos/ocilo/skype-http/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/ocilo/skype-http/issues/39/comments","events_url":"https://api.github.com/repos/ocilo/skype-http/issues/39/events","html_url":"https://github.com/ocilo/skype-http/issues/39","id":229519326,"number":39,"title":"connect through state very temperamental","user":{"login":"mitchcapper","id":1643324,"avatar_url":"https://avatars1.githubusercontent.com/u/1643324?v=4","gravatar_id":"","url":"https://api.github.com/users/mitchcapper","html_url":"https://github.com/mitchcapper","followers_url":"https://api.github.com/users/mitchcapper/followers","following_url":"https://api.github.com/users/mitchcapper/following{/other_user}","gists_url":"https://api.github.com/users/mitchcapper/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchcapper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchcapper/subscriptions","organizations_url":"https://api.github.com/users/mitchcapper/orgs","repos_url":"https://api.github.com/users/mitchcapper/repos","events_url":"https://api.github.com/users/mitchcapper/events{/privacy}","received_events_url":"https://api.github.com/users/mitchcapper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-17T23:58:48Z","updated_at":"2017-09-11T19:44:54Z","closed_at":null,"author_association":"COLLABORATOR","body":"For example calling after awaiting the connect:\r\n```\r\nfs.writeFileSync(\"state.json\", JSON.stringify(await api.getState()));\r\n```\r\nthen for when connecting doing:\r\n```\r\nlet state = fs.readFileSync(\"state.json\", 'utf8');\r\nlet api = await skypeHttp.connect({ verbose: true, state: JSON.parse(state) });\r\n````\r\nwill periodically not connect properly, and will not throw an error either.  I have added inside the normal connect T/C:\r\n`await api.setStatus(\"Online\");`\r\nas if it doesn't connect right this command will fail.\r\n\r\n`skypeHttp.connect` state resuming should always throw an error if resuming from state does not work (even if we have to make a no-op call after loading state to the skype service to make sure we are all good)."},"comment":{"url":"https://api.github.com/repos/ocilo/skype-http/issues/comments/328637947","html_url":"https://github.com/ocilo/skype-http/issues/39#issuecomment-328637947","issue_url":"https://api.github.com/repos/ocilo/skype-http/issues/39","id":328637947,"user":{"login":"mitchcapper","id":1643324,"avatar_url":"https://avatars1.githubusercontent.com/u/1643324?v=4","gravatar_id":"","url":"https://api.github.com/users/mitchcapper","html_url":"https://github.com/mitchcapper","followers_url":"https://api.github.com/users/mitchcapper/followers","following_url":"https://api.github.com/users/mitchcapper/following{/other_user}","gists_url":"https://api.github.com/users/mitchcapper/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchcapper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchcapper/subscriptions","organizations_url":"https://api.github.com/users/mitchcapper/orgs","repos_url":"https://api.github.com/users/mitchcapper/repos","events_url":"https://api.github.com/users/mitchcapper/events{/privacy}","received_events_url":"https://api.github.com/users/mitchcapper/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T19:44:54Z","updated_at":"2017-09-11T19:44:54Z","author_association":"COLLABORATOR","body":"I am going to update this and say while the current error and complete re-create works 95% of the time, I have found there is 5% of the time where it will not be getting proper events and not throwing an error leading to missed events.  I have yet to find a solution to this."}}
{"actor":{"display_login":"mitchcapper"}}