Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random error after a while of work #170

Open
TiBarification opened this issue Jul 10, 2024 · 8 comments
Open

Random error after a while of work #170

TiBarification opened this issue Jul 10, 2024 · 8 comments

Comments

@TiBarification
Copy link

After some time bot working normal, but some day it stopped respond to commands.
I received
[16:14:40] [500 /General ] [Error] Couldn't find interaction in the cache, sending as normal message instead.

Used latest version of app. Restart resolved issue, but it happen again from time to time.

@KarlOfDuty
Copy link
Owner

Does it keep happening with all interactions until restart or just some?

@KarlOfDuty KarlOfDuty added the Bug label Jul 10, 2024
@TiBarification
Copy link
Author

Does it keep happening with all interactions until restart or just some?

for all of them

@KarlOfDuty
Copy link
Owner

I've made a new version of the bot with more logging on interactions, try using this version here: https://jenkins.karlofduty.com/blue/organizations/jenkins/NWAPI%2FSCPDiscord/detail/interaction-debugging/1/artifacts

@TiBarification
Copy link
Author

started testing, will update you if any change

@KarlOfDuty
Copy link
Owner

How is it going?

@TiBarification
Copy link
Author

How is it going?

Bug continue to happen.

[19:42:06] [502 /Network     ] [Info ] Listening on 0.0.0.0:9000
[19:42:07] [504 /Discord     ] [Warn ] Tried to send too much at once (Current: 1923 Next: 89), waiting one second to send the rest.
[19:42:10] [502 /Network     ] [Info ] Plugin connected.
[19:49:30] [504 /Discord     ] [Info ] Adding interaction to cache: 1272235454623912008
[19:49:32] [504 /Discord     ] [Info ] Removing interaction from cache: 1272235454623912008
[19:51:31] [504 /Discord     ] [Info ] Adding interaction to cache: 1272235966190325790
[19:52:21] [504 /Discord     ] [Info ] Adding interaction to cache: 1272236173699584011
[19:52:22] [504 /Discord     ] [Info ] Removing interaction from cache: 1272236173699584011
[20:02:54] [504 /Discord     ] [Info ] Adding interaction to cache: 1272238831210598420
[20:04:19] [504 /Discord     ] [Warn ] Tried to send too much at once (Current: 1934 Next: 79), waiting one second to send the rest.
[20:04:35] [504 /Discord     ] [Warn ] Tried to send too much at once (Current: 1947 Next: 76), waiting one second to send the rest.
[20:04:38] [504 /Discord     ] [Warn ] Tried to send too much at once (Current: 1987 Next: 68), waiting one second to send the rest.
[20:04:57] [504 /Discord     ] [Info ] Adding interaction to cache: 1272239344798928907
[20:05:18] [504 /Discord     ] [Warn ] Tried to send too much at once (Current: 1971 Next: 67), waiting one second to send the rest.
[20:05:38] [504 /Discord     ] [Info ] Adding interaction to cache: 1272239517503590474
[20:06:36] [504 /Discord     ] [Info ] Adding interaction to cache: 1272239760345272400
[20:08:03] [504 /Discord     ] [Info ] Adding interaction to cache: 1272240127103729685
[20:08:04] [504 /Discord     ] [Info ] Removing interaction from cache: 1272240127103729685

@TiBarification
Copy link
Author

I am starting to think this bug is kind of issue inside dsharpplus lib or discord itself, feels like interactions didn't received by bot sometimes, getting skipped as non processed, keep investigating.

@KarlOfDuty
Copy link
Owner

I didn't update to the latest version of the api for this update, so maybe it would be solved by doing that. I was having some issues with the logger in the latest version though so would have to solve that first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants