-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
First command after a period of inactivity fails to run (subsequent commands work fine) #616
Comments
Oops i'm a dummy, didn't even notice a new release! I see the Key error in the ratelimiter has been fixed, silly me :) Guess i'll update, heh |
Ah, nevermind! I'm no longer getting the Key error, it's a different error now, lovely :) I've updated the original post to match the new error, it's the same structure as the Key error though |
The |
Hmm, odd... For now i've just been running the bot on my home network - I plan on putting it on my VPS soon but I didn't see the point in doing that until it was mostly complete. I guess i'll see if I still have the issue once i'm running it on that |
The clue here is this: ** Reason for termination = error:#{'__exception__' => true,
'__struct__' =>
'Elixir.Protocol.UndefinedError',
description => <<>>,
protocol => 'Elixir.String.Chars',
value =>
{<0.1552.0>,
#Ref<0.781311242.2420637704.134356>}}
** Callback modules = ['Elixir.Nostrum.Api.Ratelimiter']
** Callback mode = state_functions
** Stacktrace =
** [{'Elixir.String.Chars','impl_for!',1,
[{file,"lib/string/chars.ex"},{line,3}]},
{'Elixir.String.Chars',to_string,1,
[{file,"lib/string/chars.ex"},{line,22}]},
{'Elixir.Nostrum.Api.Ratelimiter',connected,3,
[{file,"lib/nostrum/api/ratelimiter.ex"},{line,862}]},
{gen_statem,loop_state_callback,11,[{file,"gen_statem.erl"},{line,1426}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}] nostrum correctly heads into its requeue routine, but then crashes because of broken string formatting. I pushed a fix for this. Btw, another question. Your original issue (pre-edit) had a different traceback, was that another bug? |
Ah thanks for the fix! And yeah my previous stacktrace had to do with the Key error that was patched in the most recent release, I believe (#606 was the commit). At least - I didn't have that specific error anymore once i'd updated! I hadn't noticed there was a new release when i'd originally posted my issue :) If I do run into that issue again though i'll make another issue. Assuming I don't run into any other problems, are we able to mark this as solved? |
Cool, thanks for the info.
Assuming I don't run into any other problems, are we able to mark this as solved?
Sure, feel free to reopen if it occurs again despite my fix.
Thank you!
|
Ok, sounds good - thanks for the fix! |
Description
I'm encountering an issue with Nostrum where the first command after a period of inactivity fails. However, if I re-run the command, it will work just fine.
Steps to Reproduce
Expected Behavior
The command should execute without errors.
Actual Behavior
The first command after a period of inactivity fails with the following error message: (I changed some of the IDs in case it's sensitive information) (( Note that both before and after the error message, i'm still getting "HEARTBEAT_ACK" messages))
Error Message
I'll include my handle_event function in case it's relevant:
The text was updated successfully, but these errors were encountered: