Error connect API Discord Bad requests from the server side

For Workers & Pages, what is the name of the domain?

discord.com/api/v10

What is the issue or error you’re encountering

curl: (28) Connection timed out after 10001 milliseconds

What are the steps to reproduce the issue?

So I see the Cloudflare ban, that I was limited by the service provider, and I was told by Discord support that:
“This usually happens when you send too many bad or automated requests; once the bad requests stop, the limitation will be lifted automatically. Make sure to disable any bots or third-party software that interacts with Discord.”

I have a problem that after I tried to run my discord bot on a Linux Debian 12 server with an associated IP, the bot does not start completely and cannot connect to the API, and gives a timeout error, to check I used curl, as a result I could not get a response, but at the same time my discord bot starts on Windows and works fine without errors locally.

Server:~# curl -Iv --interface enp7s0 --max-time 10 https://discord.com/api/v10

  • Trying 162.159.128.233:443…
    Bound to discord.com (162.159.128.233) port 443 (#0)
  • ALPN: offers h2,http/1.1
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • CAfile: /etc/ssl/certs/ca-certificates.CRT
  • CApath: /etc/ssl/certs
  • Connection timed out after 10001 milliseconds
  • Closing connection 0
    curl: (28) Connection timed out after 10001 milliseconds