RSVP API throws 500 Error

Environment

Discourse Version: 2.4.0.beta10

Plugin Commit: FIX: empty strings should be saved as empty array for proper json cas… · paviliondev/discourse-events@fdee0c4 · GitHub

Other Plugins
discourse-canned-replies
discourse-user-notes
docker_manager
procourse-static-pages

Steps to Reproduce

There seems to be another issue using the calendar-events/rsvp api (calendar-events/rsvp/add) where we receive a 500 error when accessing it.
We are sending a POST request with the following parameters:

topic_id: [id_of_topic]
type: "going"
username: [client_username]

Example

The app requires a login which is behind a paywall and due to the sensitive nature of the content, we can not grant access.

Logs

This is a duplicate of another topic here:

1 Like

Not really a duplicate.
Checking your git blame history here indicates that the API params were updated.
More specifically: username(string) to usernames(array).

I can confirm that updating the params in our POST request fixed the 500 error.

Cheers! :pray:t3:

2 Likes