question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when sending embeds on multiple servers

See original GitHub issue

As mentioned in the title, this happens when sending embeds on multiple servers at once. The installed version is the latest nightly build (2.2.0-dev-20190908.10)

Exception:

System.ArgumentOutOfRangeException: Valid values are between -62135596800000 and 253402300799999, inclusive.
Parameter name: milliseconds
   at System.DateTimeOffset.FromUnixTimeMilliseconds(Int64 milliseconds)
   at Discord.Net.RateLimitInfo..ctor(Dictionary`2 headers)
   at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request)
   at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request)
   at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request)
   at Discord.API.DiscordRestApiClient.SendJsonAsync[TResponse](String method, String endpoint, Object payload, String bucketId, ClientBucketType clientBucket, RequestOptions options)
   at Discord.API.DiscordRestApiClient.CreateMessageAsync(UInt64 channelId, CreateMessageParams args, RequestOptions options)
   at Discord.Rest.ChannelHelper.SendMessageAsync(IMessageChannel channel, BaseDiscordClient client, String text, Boolean isTTS, Embed embed, RequestOptions options)```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
NotOfficercommented, Sep 13, 2019

As a temporary fix, does setting RateLimitPrecision to seconds in your client config resolve this issue?

With that setting it doesnt throw.

0reactions
NotOfficercommented, Sep 14, 2019

Got those ratelimit headers:

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to broadcast a embed to different servers discord python
1 Answer 1 ... You aren't getting any errors, because you are silently ignoring all exceptions with except Exception: continue . The error...
Read more >
ctx.send(embed=embed) not working with slash command
However the line Await ctx.send(embed=embed) Throws… ... which just returns users data for server in embed format. ... 3 more replies.
Read more >
How to Create Stylised Embed Messages in Discord with ...
We use discord py 2 embeds to achieve all of this URLs ... inviting it to your server - Setting up the python...
Read more >
These Pro Carl-bot Embed Tips will Improve Your Discord
Learn how to copy and edit embeds, create clickable text that redirects to a website, ... Become a Member (Discord Server Benefits &...
Read more >
Code Your Own Discord Bot - Embeds (2021) - YouTube
Adding embeds can make your bot seem more professional. ... Discord Server : https://discord.gg/arJ92B5YNH Twitch Channel: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found