Skip to content

Instantly share code, notes, and snippets.

@mazz
Created December 28, 2023 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazz/9790d864695ace03b433269185d01257 to your computer and use it in GitHub Desktop.
Save mazz/9790d864695ace03b433269185d01257 to your computer and use it in GitHub Desktop.
[watch] build finished, watching for changes...
Rebuilding...
Done in 911ms.
[debug] Upgrading connection to websocket
[debug] Shard connection up, waiting for consumers to boot
[error] ** State machine <0.715.0> terminating
** Last event = {info,{gun_upgrade,<0.735.0>,
#Ref<0.3877279376.554958849.24784>,
[<<"websocket">>],
[{<<"date">>,
<<"Thu, 28 Dec 2023 03:51:32 GMT">>},
{<<"connection">>,<<"upgrade">>},
{<<"sec-websocket-accept">>,
<<"zp2YW3JJI+PzYeKpkOGOTs4mHY4=">>},
{<<"upgrade">>,<<"websocket">>},
{<<"cf-cache-status">>,<<"DYNAMIC">>},
{<<"report-to">>,
<<"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=P2PVm2N1D6YvoCb3jwRRZFvke56R6ZK%2B6ZGAsbvMECr04UkDUmOh4JKfruD5gKKjvPiMT7s%2B6RgWlX1aS%2FYWl7DN8D0kJAjYmPzx0%2BmOB3kuBiEdzB8wBlqBv9nsg4CBRV6CzQ%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">>,
<<"83c6d8695bd439f9-YYZ">>}]}}
** When server state = {connecting_ws,
#{stream => #Ref<0.3877279376.554958849.24784>,
seq => nil,
'__struct__' => 'Elixir.Nostrum.Struct.WSState',
session => nil,conn => <0.735.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 = 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, waiting for consumers to boot
[debug] Consumer up, we are ready to rumble
[info] IDENTIFYING
[info] READY
[debug] HEARTBEAT_ACK
[debug] HEARTBEAT_ACK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment