Skip to content

Retrieving logs from a checkpoint log ID does not work #812

Description

@dldobbin

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this SDK and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Retrieving logs through a search query is exceeding the limits of pagination, so I am trying to search from a checkpoint log ID as described in the function description:

// Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.
//
// To search from a checkpoint log ID, use the following parameters:
//
// - from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
// - take: Number of entries to retrieve when using the from parameter.
//
// Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

These parameters are not available in the SDK body object ListLogsRequestParameters, but I can set them using option.WithQueryParameters.
However, this API call returns a bare JSON array that cannot be parsed by the SDK (incidentally, I believe setting IncludeTotals to false will similarly break the SDK).

Expectation

The SDK can perform the search from a checkpoint log ID.

Reproduction

Given the 'from' parameter is set on a call to Logs.List
When the call is made
Then a parsing error occurs

Auth0 Go SDK version

2.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions