KarlOfDuty / SCPDiscord

A NWAPI plugin which adds remote interaction to an SCP:SL server through Discord.
https://karlofduty.com
GNU General Public License v3.0
12 stars 13 forks source link

Random error after a while of work #170

Open TiBarification opened 2 months ago

TiBarification commented 2 months ago

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 commented 2 months ago

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

TiBarification commented 2 months ago

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

for all of them

KarlOfDuty commented 2 months ago

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 commented 2 months ago

started testing, will update you if any change

KarlOfDuty commented 1 month ago

How is it going?

TiBarification commented 1 month ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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