Skip to content

Fix the Jackson mapping for a response when search from a checkpoint log ID#895

Open
segabriel wants to merge 1 commit into
auth0:masterfrom
segabriel:logs-by-checkpoint
Open

Fix the Jackson mapping for a response when search from a checkpoint log ID#895
segabriel wants to merge 1 commit into
auth0:masterfrom
segabriel:logs-by-checkpoint

Conversation

@segabriel

Copy link
Copy Markdown

Hi there

I use log events, and in the v2 it works fine, now I'm trying to migrate to v3 and see the decoding issue like:

Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `com.auth0.client.mgmt.types.ListLogOffsetPaginatedResponseContent$Builder` from Array value (token `JsonToken.START_ARRAY`) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]

This is because "search from a checkpoint log ID" gives another response structure like an array of logs [{..}] (see docs https://auth0.com/docs/api/management/v2/logs/get-logs) and it cannot be decoded to ListLogOffsetPaginatedResponseContent.

Some code for debugging the issue:

public static void main(String[] args) {
    final var response =
        ManagementApi.builder()
            .domain("xxx.auth0.com")
            .clientCredentials("***", "***")
            .build()
            .logs()
            .list(
                ListLogsRequestParameters.builder().fields("logs").includeFields(true).build(),
                RequestOptions.builder()
                    .addQueryParameter("from", "90020260710082608309772000000000000001223372072903441213")
                    .addQueryParameter("take", "10")
                    .build());

    System.out.println(response);
  }

Raw request example

Request{method=GET, url=https://xxx.auth0.com/api/v2/logs?page=0&per_page=50&fields=logs&include_fields=true&include_totals=true&take=10&from=90020260710082608309772000000000000001223372072903441213, headers=[...]}

Raw response example

[{"date":"2026-07-10T08:36:34.434Z","type":"seccft","description":"","connection_id":"","client_id":"SXXXN", "log_id":"90020260710083634443881000000000000001223372072904089442"}]

@segabriel segabriel requested a review from a team as a code owner July 10, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant