{"action":"created","issue":{"url":"https://api.github.com/repos/Kraigie/nostrum/issues/45","repository_url":"https://api.github.com/repos/Kraigie/nostrum","labels_url":"https://api.github.com/repos/Kraigie/nostrum/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/Kraigie/nostrum/issues/45/comments","events_url":"https://api.github.com/repos/Kraigie/nostrum/issues/45/events","html_url":"https://github.com/Kraigie/nostrum/issues/45","id":300483231,"number":45,"title":"ZLib issue","user":{"login":"skwerlman","id":6954107,"avatar_url":"https://avatars3.githubusercontent.com/u/6954107?v=4","gravatar_id":"","url":"https://api.github.com/users/skwerlman","html_url":"https://github.com/skwerlman","followers_url":"https://api.github.com/users/skwerlman/followers","following_url":"https://api.github.com/users/skwerlman/following{/other_user}","gists_url":"https://api.github.com/users/skwerlman/gists{/gist_id}","starred_url":"https://api.github.com/users/skwerlman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skwerlman/subscriptions","organizations_url":"https://api.github.com/users/skwerlman/orgs","repos_url":"https://api.github.com/users/skwerlman/repos","events_url":"https://api.github.com/users/skwerlman/events{/privacy}","received_events_url":"https://api.github.com/users/skwerlman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-27T03:42:16Z","updated_at":"2018-04-03T14:49:46Z","closed_at":null,"author_association":"NONE","body":"Seems very similar to #35 \r\n\r\n```\r\n22:26:44.468 [info]  websocket closed, attempting reconnect\r\n\r\n22:26:44.470 [error] GenServer #PID<0.800.0> terminating\r\n** (stop) :data_error\r\n    :zlib.inflateEnd_nif(#Reference<0.2579208287.1398407170.85146>)\r\n    (nostrum) lib/nostrum/shard/session.ex:133: Nostrum.Shard.Session.handle_info/2\r\n    (stdlib) gen_server.erl:633: :gen_server.try_dispatch/4\r\n    (stdlib) gen_server.erl:703: :gen_server.handle_msg/6\r\n    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3\r\nLast message: {:gun_down, #PID<0.803.0>, :ws, :closed, [], []}\r\nState: %{gateway: 'gateway.discord.gg', gun_pid: #PID<0.803.0>, heartbeat_ack: true, producer_pid: #PID<0.801.0>, reconnect_attempts: 0, seq: 22, session: \"2f2a3e582935ec8bb82d20bdf207446a\", shard_num: 0, shard_pid: #PID<0.800.0>, token: \"<CENSORED>\", zlib_buffer: \"\", zlib_ctx: #Reference<0.2579208287.1398407170.85146>}\r\n\r\n22:26:44.471 [info]  GenStage consumer #PID<0.857.0> is stopping after receiving cancel from producer #PID<0.802.0> with reason: {:data_error, [{:zlib, :inflateEnd_nif, [#Reference<0.2579208287.1398407170.85146>], []}, {Nostrum.Shard.Session, :handle_info, 2, [file: 'lib/nostrum/shard/session.ex', line: 133]}, {:gen_server, :try_dispatch, 4, [file: 'gen_server.erl', line: 633]}, {:gen_server, :handle_msg, 6, [file: 'gen_server.erl', line: 703]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}\r\n```"},"comment":{"url":"https://api.github.com/repos/Kraigie/nostrum/issues/comments/378277335","html_url":"https://github.com/Kraigie/nostrum/issues/45#issuecomment-378277335","issue_url":"https://api.github.com/repos/Kraigie/nostrum/issues/45","id":378277335,"user":{"login":"barkerja","id":6124,"avatar_url":"https://avatars1.githubusercontent.com/u/6124?v=4","gravatar_id":"","url":"https://api.github.com/users/barkerja","html_url":"https://github.com/barkerja","followers_url":"https://api.github.com/users/barkerja/followers","following_url":"https://api.github.com/users/barkerja/following{/other_user}","gists_url":"https://api.github.com/users/barkerja/gists{/gist_id}","starred_url":"https://api.github.com/users/barkerja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barkerja/subscriptions","organizations_url":"https://api.github.com/users/barkerja/orgs","repos_url":"https://api.github.com/users/barkerja/repos","events_url":"https://api.github.com/users/barkerja/events{/privacy}","received_events_url":"https://api.github.com/users/barkerja/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T14:49:46Z","updated_at":"2018-04-03T14:49:46Z","author_association":"NONE","body":"Experienced this issue overnight, and it does appear to be due to losing connectivity.\r\n\r\n```\r\n04:14:55.879 [error] GenServer #PID<0.237.0> terminating\r\n** (stop) :data_error\r\n    :zlib.inflateEnd_nif(#Reference<0.1518309513.3002990599.98253>)\r\n    (nostrum) lib/nostrum/shard/session.ex:135: Nostrum.Shard.Session.handle_info/2\r\n    (stdlib) gen_server.erl:616: :gen_server.try_dispatch/4\r\n    (stdlib) gen_server.erl:686: :gen_server.handle_msg/6\r\n    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3\r\nLast message: {:gun_down, #PID<0.240.0>, :ws, :closed, [], []}\r\n\r\n04:14:55.882 [error] GenServer #PID<0.266.0> terminating\r\n** (stop) :data_error\r\n    :zlib.inflateEnd_nif(#Reference<0.1518309513.3002990599.98253>)\r\n    (nostrum) lib/nostrum/shard/session.ex:135: Nostrum.Shard.Session.handle_info/2\r\n    (stdlib) gen_server.erl:616: :gen_server.try_dispatch/4\r\n    (stdlib) gen_server.erl:686: :gen_server.handle_msg/6\r\n    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3\r\nLast message: {:DOWN, #Reference<0.1518309513.3002859522.98456>, :process, #PID<0.239.0>, {:data_error, [{:zlib, :inflateEnd_nif, [#Reference<0.1518309513.3002990599.98253>], []}, {Nostrum.Shard.Session, :handle_info, 2, [file: 'lib/nostrum/shard/session.ex', line: 135]}, {:gen_server, :try_dispatch, 4, [file: 'gen_server.erl', line: 616]}, {:gen_server, :handle_msg, 6, [file: 'gen_server.erl', line: 686]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}}\r\n\r\n04:43:48.664 [error] GenServer #PID<0.891.0> terminating\r\n** (stop) :data_error\r\n    :zlib.inflateEnd_nif(#Reference<0.1518309513.3002990597.97833>)\r\n    (nostrum) lib/nostrum/shard/session.ex:135: Nostrum.Shard.Session.handle_info/2\r\n    (stdlib) gen_server.erl:616: :gen_server.try_dispatch/4\r\n    (stdlib) gen_server.erl:686: :gen_server.handle_msg/6\r\n    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3\r\nLast message: {:gun_down, #PID<0.894.0>, :ws, :closed, [], []}\r\n```\r\n\r\nI have been using Nostrum as part of my journey to learn Elixir, so my experience here is limited. Is there an appropriate solution to automatically restart the process?\r\n\r\n(P.S. Thank you for a great bot! Hopefully one day I will be able contribute)"}}
{"actor":{"display_login":"barkerja"}}