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.

AlwaysDownloadUsers = true causes stability issues

See original GitHub issue

My test was with a Bot on 2.5k servers split upon 3 shards. Setting AlwaysDownloadUsers to true ALWAYS made Shard 0 disconnect. The Shard would just be stuck in a infinite loop of connecting, then the remote party closes the connection without a handshake, reconnecting and so on until the bot token gets reset. Setting it to false and its stable again…

_client = new DiscordSocketClient(new DiscordSocketConfig()
            {
                LogLevel = LogSeverity.Info,
                AlwaysDownloadUsers = true,
                MessageCacheSize = 0,
                TotalShards = Utility.TOTAL_SHARDS,
                ShardId = shardId
            });

All other shards are unaffected and stable.

Bot ran on a Ubuntu Server with 16.04 LTS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
xXBuilderBXxcommented, Jun 9, 2018

I had this issue aswell just delete all your packages and restore them from a packages.config thats how i fixed it somehow lol.

Or manually restore your packages if ^ dosent work one of the two fixes it

0reactions
foxbotcommented, Dec 21, 2018

We’ve added direct access to the REST client via 65afd375022b126ecf12c56ef5704d1c1d60902f.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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