{"action":"created","issue":{"url":"https://api.github.com/repos/RogueException/Discord.Net/issues/1093","repository_url":"https://api.github.com/repos/RogueException/Discord.Net","labels_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/1093/labels{/name}","comments_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/1093/comments","events_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/1093/events","html_url":"https://github.com/RogueException/Discord.Net/pull/1093","id":335055200,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODcyNzMy","number":1093,"title":"Solved 4003 Authentication Error (Race Condition)","user":{"login":"ComputerMaster1st","id":24191511,"node_id":"MDQ6VXNlcjI0MTkxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/24191511?v=4","gravatar_id":"","url":"https://api.github.com/users/ComputerMaster1st","html_url":"https://github.com/ComputerMaster1st","followers_url":"https://api.github.com/users/ComputerMaster1st/followers","following_url":"https://api.github.com/users/ComputerMaster1st/following{/other_user}","gists_url":"https://api.github.com/users/ComputerMaster1st/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputerMaster1st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputerMaster1st/subscriptions","organizations_url":"https://api.github.com/users/ComputerMaster1st/orgs","repos_url":"https://api.github.com/users/ComputerMaster1st/repos","events_url":"https://api.github.com/users/ComputerMaster1st/events{/privacy}","received_events_url":"https://api.github.com/users/ComputerMaster1st/received_events","type":"User","site_admin":false},"labels":[{"id":640928714,"node_id":"MDU6TGFiZWw2NDA5Mjg3MTQ=","url":"https://api.github.com/repos/RogueException/Discord.Net/labels/priority:%20bug","name":"priority: bug","color":"843333","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-23T01:10:59Z","updated_at":"2018-06-23T01:19:19Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/RogueException/Discord.Net/pulls/1093","html_url":"https://github.com/RogueException/Discord.Net/pull/1093","diff_url":"https://github.com/RogueException/Discord.Net/pull/1093.diff","patch_url":"https://github.com/RogueException/Discord.Net/pull/1093.patch"},"body":"Hi There,\r\n\r\nThe current build (00969) with the change to VoiceAPI is producing a 4003 Authentication Error. This was caused by a possible race condition created by sending the heartbeat before the identity payload.\r\n\r\nThis commit solves this by having the heartbeat start after receiving the ready payload. The discord developer documents also shows the identity payload being sent before performing heartbeat payloads. I've added a local variable to store the interval being received by the hello payload.\r\n\r\nThis change has been tested with NETCore 2.1. It is unknown if this works with 2.0, although there shouldn't be a problem.\r\n\r\n**NOTE :** (Please refer to discord dev docs) There is a bug with the hello payload which is sending the incorrect heartbeat interval. This should be changed in the future or you can make the interval a static integer value of 41250.\r\n\r\nRegards,\r\n\r\nCM1"},"comment":{"url":"https://api.github.com/repos/RogueException/Discord.Net/issues/comments/399619726","html_url":"https://github.com/RogueException/Discord.Net/pull/1093#issuecomment-399619726","issue_url":"https://api.github.com/repos/RogueException/Discord.Net/issues/1093","id":399619726,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTYxOTcyNg==","user":{"login":"ComputerMaster1st","id":24191511,"node_id":"MDQ6VXNlcjI0MTkxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/24191511?v=4","gravatar_id":"","url":"https://api.github.com/users/ComputerMaster1st","html_url":"https://github.com/ComputerMaster1st","followers_url":"https://api.github.com/users/ComputerMaster1st/followers","following_url":"https://api.github.com/users/ComputerMaster1st/following{/other_user}","gists_url":"https://api.github.com/users/ComputerMaster1st/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputerMaster1st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputerMaster1st/subscriptions","organizations_url":"https://api.github.com/users/ComputerMaster1st/orgs","repos_url":"https://api.github.com/users/ComputerMaster1st/repos","events_url":"https://api.github.com/users/ComputerMaster1st/events{/privacy}","received_events_url":"https://api.github.com/users/ComputerMaster1st/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T01:19:19Z","updated_at":"2018-06-23T01:19:19Z","author_association":"NONE","body":"Made changes."}}
{"actor":{"display_login":"ComputerMaster1st"}}