alexemanuelol / rustplusplus

A NodeJS Discord Bot that uses the rustplus.js library to utilize the power of the Rust+ Companion App with additional Quality-of-Life features.
GNU General Public License v3.0
209 stars 100 forks source link

[ERROR] Message send failed: DiscordAPIError[50035]: Invalid Form Body #257

Closed Fruschel closed 11 months ago

Fruschel commented 11 months ago

Hey :)

I get following error as I try to connect a Rust server with RustPlusPlus.. :/

I don't get anything written in the channel #servers where I could connect RustPlusPlus and this error got thrown in console: image

Anybody got a clue what this could be it :O

Fruschel commented 11 months ago

It seems like the error gets thrown in the DiscordBot.js

Further investigation:

image

Am I missing sth. :/

Fruschel commented 11 months ago

Ok.. detective did some more work.. it seems like RustPlusPlus got some problems with the banner thumbnail url of Rustafied.com EU Medium II

If using following code it works:

image

image

The "malfunctioned" thumbnail url is:

https://cdn.rustafied.systems/server-header-images/EU Medium 2.png

Maybe its not URI encoded? Like because of the whitespaces => ' ' => '%20' ?

alexemanuelol commented 11 months ago

I already got a fix for it but didnt have time to test it, had to play cs2 ;D

alexemanuelol commented 11 months ago

255 already covers it

Fruschel commented 11 months ago

Ah okay.. damn I should have checked the other issues.. :D Thank you! :)

alexemanuelol commented 11 months ago

Thanks for reporting any way :)

alexemanuelol commented 11 months ago

Seems all Rustafied servers were having trouble with it

Fruschel commented 11 months ago

You already got a branch of it which can be pushed? :D If not it's ok, if then I could test it :D

alexemanuelol commented 11 months ago

Im about to test it now :)

alexemanuelol commented 11 months ago

Solved in: afbdc686c1422d4e359cbc58de57c16302b9d021