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

Does this prevent 400 errors from Cloudflare? #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Nov 26, 2024

I noticed these errors in CI:

    expect #<Async::Discord::Guilds "/api/v10/users/@me/guilds" value=nil> not to
        be empty?
            ⚠ Async::REST::ResponseError: 400 HTTP/2: <html>
            <head><title>400 Bad Request</title></head>
            <body>
            <center><h1>400 Bad Request</h1></center>
            <hr><center>cloudflare</center>
            </body>
            </html>

The documentation for the user agent might explicitly require the string DiscordBot: https://discord.com/developers/docs/reference#user-agent-user-agent-example

Types of Changes

  • Bug fix.

Contribution

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

Successfully merging this pull request may close these issues.

1 participant