Comments (8)
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.
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.
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.
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.
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.
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.
from nostrum.
Ok, sounds good - thanks for the fix!
from nostrum.
Related Issues (20)
- Remove usage of token from environment in Nostrum.Api.Base
- Remove Nostrum.Api.get_token
- Remove usage of num_shards setting from Nostrum.Util
- Feature planning: Reducing reliance on globally registered name
- Feature planning: QLC expansion
- Investigate unmatched returns found by Dialyzer
- State documentation uses outdated example for user discriminator query HOT 3
- Documentation Cheat Sheets HOT 1
- Cache Adapters & QLC: Example Postgres Adapter
- Expanding the example bot section HOT 6
- Provide friendlier message for missing consumer startup
- Include installing a consumer as part of the setup instructions
- Feature planning: Behaviours HOT 2
- Update documentation in regards to wrap_qlc
- exited in: :gen_server.call(Nostrum.ConsumerGroup, {:join_local, :consumers, #PID<0.431.0>}, :infinity) HOT 4
- Incorrect spec for Api.modify_webhook HOT 3
- "this interaction failed" when handling interactions with `handle_event` HOT 1
- Constants.webhook_message_edit is incorrect HOT 1
- Cannot use Nostrum.Api functions in a multi-host configuration due to the request Ratelimiter not running HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nostrum.