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

Error sending to Discord: Error: Request failed with status code 400 #19

Open
danydin opened this issue Dec 29, 2023 · 1 comment
Open

Comments

@danydin
Copy link

danydin commented Dec 29, 2023

1:04:00 discord changed their webhook handler and trying to send the object via axios will results in: Error sending to Discord: Error: Request failed with status code 400 - anyone knows the new template to send to fix it?

@MohammedAslam106
Copy link

I was facing the same issue. The error was that the image I was sending was undefined. So, please check your data once, which you are wrapping inside the body of the Axios post request. Ensure you send the "content" and "embeds" as requested to the body.

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

No branches or pull requests

2 participants