API: Get Events using filter and parameter "after"
gliden opened this issue · 3 comments
Server-Error when downloading events using the api with the following request
https://api.exceptionless.io/api/v2/projects/:projectId/events?filter=type:usage&after=64ca1df6bf2cbc0001954a03
Response:
{ "message": "An error occurred while serving your request.", "reference_id": "5b1217a3b2", "is_error": true }
How are you generating the after token? We just released a new minor version and we completely changed how this was generated (a minor breaking change). Before it would just take the last event id, but this wasn't using the correct after implementation that needs to take sort order into account. Now if no page number is passed to the controller, we will automatically return the correct Link Header with the before and after token. Please let me know if this helps and if there is anything else we can do for usability.
Thank you for your help. It was my fault, I thought the "after-token" is the id of an event.
It used to be, we changed it as it wasn't the proper implementation for search after paging. It's now automatically calculated.