Support

Home Forums Event Espresso Premium probably bug in rest api

probably bug in rest api

Posted: May 14, 2021 at 7:09 pm

Viewing 2 reply threads


Robby Gunawan

May 14, 2021 at 7:09 pm

Hi,

I just test

wp-json/ee/v4.8.36/events/100/registrations/

and I don’t have event id 100 and it return

{
"code": "rest_registrations_cannot_list",
"message": "Sorry, you are not allowed to list registrations related to Event. Missing permissions: ",
"data": {
"status": 403
}
}

maybe it will better if the message is invalid event id or missing event


Seth Shoultes

  • Support Staff

May 19, 2021 at 8:41 am

Ah, thanks. Are you able to view existing events during the same session without an issue?


Robby Gunawan

May 19, 2021 at 8:48 am

Hi,

yes, I can.

If I’m using wp-json/ee/v4.8.36/events/100 the error is correct

{
    "code": "rest_event_invalid_id",
    "message": "Invalid event ID.",
    "data": {
        "status": 404
    }
}

I found wp-json/ee/v4.8.36/events/100/attendees and wp-json/ee/v4.8.36/events/100/registrations

return

{
    "code": "rest_attendees_cannot_list",
    "message": "Sorry, you are not allowed to list attendees related to Event. Missing permissions: ",
    "data": {
        "status": 403
    }
}
Viewing 2 reply threads

The support post ‘probably bug in rest api’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso