Intermittent Discord Bot

Hello,

I’m hosting a Discord Bot written in Python and when it is deployed on Fly, I get some really random errors of unknown interaction from Discord’s API. I suppose sometimes the application takes too long to reply and the API timeouts.
I was using a Shared 1vcpu and 256mb RAM, I thought it could be some RAM issues so I upgraded it to 1GB, but I still have this problem.
However, when I’m hosting it locally on my machine I never get this kind of error.
I’m using the same Dockerfile to run it locally too

Is there some network configuration I need to do?
I ran out of ideas

Thanks a lot

What’s the specific error?

Have you tried turning off auto stop?

This is the error
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

auto stop is disabled

app = "bot"
primary_region = "gru"

[build]

[env]
  PORT = "8080"

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = false
  auto_start_machines = true
  min_machines_running = 1
  processes = ["app"]

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.