Coder Social home page Coder Social logo

Comments (8)

xenanthropy avatar xenanthropy commented on September 27, 2024

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

from nostrum.

xenanthropy avatar xenanthropy commented on September 27, 2024

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

from nostrum.

Th3-M4jor avatar Th3-M4jor commented on September 27, 2024

The {gun_error,<0.1453.0>,#Ref<0.781311242.2420637704.134357>,closed} would suggest this is an issue with your network stack somewhere along the line. As this would suggest the http connection is being closed by Cloudflare or Discord.

from nostrum.

xenanthropy avatar xenanthropy commented on September 27, 2024

The {gun_error,<0.1453.0>,#Ref<0.781311242.2420637704.134357>,closed} would suggest this is an issue with your network stack somewhere along the line. As this would suggest the http connection is being closed by Cloudflare or Discord.

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

from nostrum.

jchristgit avatar jchristgit commented on September 27, 2024

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?

from nostrum.

xenanthropy avatar xenanthropy commented on September 27, 2024

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?

from nostrum.

jchristgit avatar jchristgit commented on September 27, 2024

from nostrum.

xenanthropy avatar xenanthropy commented on September 27, 2024

Ok, sounds good - thanks for the fix!

from nostrum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.