Greetings,
I’m making a new topic since [400] Invalid Form Body Discord Creates a new guild event is closed.
Getting a 400 error despite using all the required fields. Tried many combinations but still no clue.
Any ideas?
- V
Greetings,
I’m making a new topic since [400] Invalid Form Body Discord Creates a new guild event is closed.
Getting a 400 error despite using all the required fields. Tried many combinations but still no clue.
Any ideas?
Welcome to the Make community!
According to the Discord Developer Documentation,
The scheduled_start_time
and scheduled_end_time
needs to be in a ISO8601 timestamp format.
For example, September 27, 2022 at 6 p.m.
is represented as 2022-09-27 18:00:00.000
You can use the parseDate and formatDate functions to define the correct format.
For more information, see Date Format tokens links below.
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
parseDate
| tokens for formatDate
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Sadly that didn’t work out. Tried with 2022-09-27 18:00:00.000
in the fields, or even parseDate(;X) (see below)
I will try with an API call. Seems that the whole error body (referenced at Discord Developer Portal) is not returned : Error array show in the logs by Make is
[
null
]
Is there any way to inspect the whole output?
Have you tried creating the event in the future, and within 5 years of today?
e.g.:
2028-12-31 23:59:00.000
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Tested working dates
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
That was indeed the solution, thank you!
Discord’s API does not accept past dates.
Marked the post as resolved.