Skip to content

Instantly share code, notes, and snippets.

@mazz
Created December 28, 2023 03:50
Show Gist options
  • Save mazz/ad99425ad8e3e255b7cdb87b136ab328 to your computer and use it in GitHub Desktop.
Save mazz/ad99425ad8e3e255b7cdb87b136ab328 to your computer and use it in GitHub Desktop.
[error] ** State machine <0.715.0> terminating
** Last event = {state_timeout,connect_timeout}
** When server state = {connecting_http,
#{stream => nil,seq => nil,
'__struct__' => 'Elixir.Nostrum.Struct.WSState',
session => nil,conn => <0.720.0>,
gateway => <<"gateway.discord.gg">>,
last_heartbeat_ack => nil,
last_heartbeat_send => nil,
heartbeat_interval => nil,shard_num => 0,
heartbeat_ack => nil,zlib_ctx => nil,
resume_gateway => nil,conn_pid => <0.715.0>,
total_shards => 1}}
** Reason for termination = exit:connect_http_timeout
** Callback modules = ['Elixir.Nostrum.Shard.Session']
** Callback mode = [state_functions,state_enter]
** Stacktrace =
** [{gen_statem,loop_state_callback_result,11,
[{file,"gen_statem.erl"},{line,1499}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]
[debug] Establishing initial connection
[info] WAITING 472 BEFORE NEXT SHARD CONNECT
[debug] Upgrading connection to websocket
[debug] Shard connection up, waiting for consumers to boot
[error] ** State machine <0.994.0> terminating
** Last event = {info,{gun_upgrade,<0.999.0>,
#Ref<0.762178554.1627652098.245850>,
[<<"websocket">>],
[{<<"date">>,
<<"Thu, 28 Dec 2023 03:47:21 GMT">>},
{<<"connection">>,<<"upgrade">>},
{<<"sec-websocket-accept">>,
<<"cv0TYR5eA7FgdX9ztkRCAIrjX6k=">>},
{<<"upgrade">>,<<"websocket">>},
{<<"cf-cache-status">>,<<"DYNAMIC">>},
{<<"report-to">>,
<<"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=d9wvHWucOUKoiLpTkDYpU%2FUya2H0nviLATpBKSVOmw%2Fwk0Ggy74%2Flm3kyEfddIKR2LzJTXwUiW8F%2FAbqpNmBdwhb8dIGVrxyFzRyvqC7SvtnHesVGi6jT7fTVXyNsQLgAb5GrQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}">>},
{<<"nel">>,
<<"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}">>},
{<<"strict-transport-security">>,
<<"max-age=31536000; includeSubDomains; preload">>},
{<<"x-content-type-options">>,
<<"nosniff">>},
{<<"server">>,<<"cloudflare">>},
{<<"cf-ray">>,
<<"83c6d24cca6e711c-YYZ">>}]}}
** When server state = {connecting_ws,
#{stream => #Ref<0.762178554.1627652098.245850>,
seq => nil,
'__struct__' => 'Elixir.Nostrum.Struct.WSState',
session => nil,conn => <0.999.0>,
gateway => <<"gateway.discord.gg">>,
last_heartbeat_ack => nil,
last_heartbeat_send => nil,
heartbeat_interval => nil,shard_num => 0,
heartbeat_ack => nil,zlib_ctx => nil,
resume_gateway => nil,conn_pid => <0.994.0>,
total_shards => 1}}
** Reason for termination = error:{badmatch,timeout}
** Callback modules = ['Elixir.Nostrum.Shard.Session']
** Callback mode = [state_functions,state_enter]
** Stacktrace =
** [{'Elixir.Nostrum.Shard.Session',connected,3,
[{file,"lib/nostrum/shard/session.ex"},
{line,239}]},
{gen_statem,loop_state_callback,11,[{file,"gen_statem.erl"},{line,1377}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]
** Time-outs: {1,[{state_timeout,upgrade_timeout}]}
[debug] Establishing initial connection
[debug] Upgrading connection to websocket
[debug] Shard connection up
[info] IDENTIFYING
[info] READY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment