-
Notifications
You must be signed in to change notification settings - Fork 162
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
DiscordAPIError: Invalid Form Body crash #1157
Comments
I have the same problem, do you find any method to solve it? |
can u log data (Object) |
@aiko-chan-ai sry i didnt see this for long time but i start project again and im having this issue again. i updated library and still having problems. this time data: [Object] is logged now but i dont remember changing anything \node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415 DiscordAPIError: Invalid Form Body the custom_id was correct because i saw my own logging and the custom_id in the error matched one of the custom_id of my message component object the error happens when doing message.clickButton |
Which package has the bugs?
The core library
Issue description
When I try to click buttons sometimes my code crashes. is this because i am using more than one client and rate limit? but http status is 400 and not ratelimit. i am checking to see if button is disabled before clicks but it still gives me error and crashes my script even if i put try and catch before the button click
c:\discord\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
COMPONENT_VALIDATION_FAILED: Component validation failed
at RequestHandler.execute (c:\discord\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (c:\discord\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:63:14) {
method: 'post',
path: '/interactions',
code: 50035,
httpStatus: 400,
requestData: {
json: {
type: 3,
nonce: '1111111111111111111',
guild_id: '1111111111111111111',
channel_id: '1111111111111111111',
message_id: '1111111111111111111',
application_id: '1111111111111111111',
session_id: 'numbers and letters',
message_flags: 0,
data: [Object]
},
files: [],
headers: undefined
},
retries: 0,
captcha: null
}
Code sample
Package version
3.1.4 github
Node.js version
20.12.2
Operating system
No response
Priority this issue should have
Low (slightly annoying)
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: