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 400 (code: 50035). An unknown COMPONENT_VALIDATION_FAILED #5943

Open
DasicPhilipp opened this issue Feb 19, 2023 · 5 comments
Open

Error 400 (code: 50035). An unknown COMPONENT_VALIDATION_FAILED #5943

DasicPhilipp opened this issue Feb 19, 2023 · 5 comments
Labels
bug synced Synced to internal tracker

Comments

@DasicPhilipp
Copy link

Description

From time to time a weird error occurs. When I press buttons, I receive "This Interaction Failed". Discord denies my request:

{"code": 50035, "errors": {"data": {"_errors": [{"code": "COMPONENT_VALIDATION_FAILED", "message": "Component validation failed"}]}}, "message": "Invalid Form Body"}

There is no regularity and that's why it's weird. Custom IDs are absolutely correct, but Discord itself refuses to validate my component. Only some of the buttons stop working. I can make a copy of the message (update it), only then it begins working again. Sometimes it requires a second button click to make it working, but sometimes you cannot press anything until forever.

Ask me any details you need.

Steps to Reproduce

The example of a broken request:

curl "https://canary.discord.com/api/v9/interactions" ^
  -H "authority: canary.discord.com" ^
  -H "accept: */*" ^
  -H "accept-language: ru,en-US;q=0.9,de-DE;q=0.8,zh-Hans-CN;q=0.7" ^
  -H "authorization: MzIxODYwNTI2MjEwNTQ3NzE1.GsmCxS.dE4bYPgYR_N2t-vaq3k_zmZb1Nlroscz0j-AR4" ^
  -H "content-type: application/json" ^
  -H "cookie: __dcfduid=752c38d0b02e11ed99fe0bf080fc08c9; __sdcfduid=752c38d1b02e11ed99fe0bf080fc08c9de2dfd7a8aebbfd23edc3596a1294aabe593430cb559f8fc69b7f577b07b0de9; __cfruid=9e857126b6fe471c4a6cacbcf56ab16bf7dfbb68-1676798310; locale=en-GB" ^
  -H "origin: https://canary.discord.com" ^
  -H "referer: https://canary.discord.com/channels/458517175536320512/1065866143115530321" ^
  -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^"" ^
  -H "sec-ch-ua-mobile: ?0" ^
  -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
  -H "sec-fetch-dest: empty" ^
  -H "sec-fetch-mode: cors" ^
  -H "sec-fetch-site: same-origin" ^
  -H "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.57 Chrome/108.0.5359.215 Electron/22.2.0 Safari/537.36" ^
  -H "x-debug-options: bugReporterEnabled" ^
  -H "x-discord-locale: en-GB" ^
  -H "x-super-properties: eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJjYW5hcnkiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC41NyIsIm9zX3ZlcnNpb24iOiIxMC4wLjIyNjIxIiwib3NfYXJjaCI6Ing2NCIsInN5c3RlbV9sb2NhbGUiOiJydSIsImNsaWVudF9idWlsZF9udW1iZXIiOjE3NTUxNywibmF0aXZlX2J1aWxkX251bWJlciI6Mjk3ODksImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGwsImRlc2lnbl9pZCI6MH0=" ^
  --data-raw "^{^\^"type^\^":3,^\^"nonce^\^":^\^"1076810569685663744^\^",^\^"guild_id^\^":^\^"458517175536320512^\^",^\^"channel_id^\^":^\^"1065866143115530321^\^",^\^"message_flags^\^":64,^\^"message_id^\^":^\^"1076809785518858250^\^",^\^"application_id^\^":^\^"1045979735727018024^\^",^\^"session_id^\^":^\^"3384841ef9125ddf9ab955d13b75df2c^\^",^\^"data^\^":^{^\^"component_type^\^":2,^\^"custom_id^\^":^\^"commodity:19,707^\^"^}^}" ^
  --compressed

Expected Behavior

In the ideal case, this error should not occur because everything is correct (I can create a copy of the message with the same buttons, data and etc. and the new one will work). Otherwise, Discord should give more information in the error message but not only "Component validation failed". It's unclear. What is failed?

Current Behavior

The error occurs from time to time, no regularity. The only regularity I see is that it occurs more likely if I press buttons too fast. But if I am slow enough it still may happen.

Screenshots/Videos

https://youtu.be/a7xk6zoDQ-c (example #1) (video #1 below)
https://youtu.be/JsYuzFUpHDc (example #2) (only YouTube, too big)
https://youtu.be/KP4awjPSh5Q (example #3) (video #2 below)

2023-02-19.17-00-39.mp4
2023-02-19.17-42-52.mp4

Client and System Information

I use Discord.NET library, but it really doesn't matter, because Discord itself denies the requests.

@rain-discord rain-discord added the synced Synced to internal tracker label Feb 22, 2023
@holisticishackorman
Copy link

Did you ever manage to find a way around this or a solution? Just became my error too..

@DasicPhilipp
Copy link
Author

Did you ever manage to find a way around this or a solution? Just became my error too..

Unfortunately, no. I just let it be so and gave up. Maybe, the devs will fix it somewhen…

@holisticishackorman
Copy link

Are you trying to do this in requests or actually in discord?

@DasicPhilipp
Copy link
Author

Are you trying to do this in requests or actually in discord?

I didn't quite undestand what you mean. I've tried both. The issue occurs when I press some buttons, so it is visible on the console. Discord refuses to send responses, so buttons become buggy

@holisticishackorman
Copy link

holisticishackorman commented Apr 12, 2023 via email

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

No branches or pull requests

3 participants