Skip to content

groups members endpoint returns 2026-06-23 14:31:49.761555+00 (PostgreSQL-style) but DateTimeDeserializer only handles ISO-8601 T-separated strings #884

Description

@ed-sparkes

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API 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 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

groups members endpoint returns 2026-06-23 14:31:49.761555+00 (PostgreSQL-style) but DateTimeDeserializer only handles ISO-8601 T-separated strings

Reproduction

Description

Calling mgmt.groups().members().get(groupId) throws ManagementException: Network error executing HTTP request when the Auth0 API returns a created_at timestamp in PostgreSQL-style format (space separator, truncated TZ offset).

The real cause is a DateTimeParseException inside DateTimeDeserializer, but RawMembersClient catches the JsonMappingException and wraps it as a misleading "Network error".

Steps to Reproduce

  1. Call GET /api/v2/groups/{id}/members on a tenant where group members have a created_at value in the format 2026-06-23 14:31:49.761555+00 (space separator, +00 TZ offset)
  2. The SDK's DateTimeDeserializer calls DateTimeFormatter.ISO_DATE_TIME.parseBest(...) on that string
  3. ISO_DATE_TIME requires a T separator — parsing fails at index 10

Minimal Reproducer (no Auth0 connection needed)

## Description

Calling `mgmt.groups().members().get(groupId)` throws `ManagementException: Network error executing HTTP request` when the Auth0 API returns a `created_at` timestamp in PostgreSQL-style format (space separator, truncated TZ offset).

The real cause is a `DateTimeParseException` inside `DateTimeDeserializer`, but `RawMembersClient` catches the `JsonMappingException` and wraps it as a misleading "Network error".

## Steps to Reproduce

1. Call `GET /api/v2/groups/{id}/members` on a tenant where group members have a `created_at` value in the format `2026-06-23 14:31:49.761555+00` (space separator, `+00` TZ offset)
2. The SDK's `DateTimeDeserializer` calls `DateTimeFormatter.ISO_DATE_TIME.parseBest(...)` on that string
3. `ISO_DATE_TIME` requires a `T` separator — parsing fails at index 10

## Minimal Reproducer (no Auth0 connection needed)

```java
DateTimeFormatter.ISO_DATE_TIME.parseBest(
    "2026-06-23 14:31:49.761555+00",
    OffsetDateTime::from,
    LocalDateTime::from
);
// → DateTimeParseException: Text '2026-06-23 14:31:49.761555+00' could not be parsed at index 10

Stack trace

java.time.format.DateTimeParseException: Text '2026-06-23 14:31:49.761555+00' could not be parsed at index 10
    at java.time.format.DateTimeFormatter.parseResolved0(Unknown Source)
    at java.time.format.DateTimeFormatter.parseBest(Unknown Source)
    at com.auth0.client.mgmt.core.DateTimeDeserializer.deserialize(DateTimeDeserializer.java:45)
Wrapped by: com.fasterxml.jackson.databind.JsonMappingException: Text '2026-06-23 14:31:49.761555+00' could not be parsed at index 10
    (through reference chain: com.auth0.client.mgmt.types.GetGroupMembersResponseContent$Builder["members"]
    ->java.util.ArrayList[0]->com.auth0.client.mgmt.types.GroupMember$Builder["created_at"])
Wrapped by: com.auth0.client.mgmt.core.ManagementException: Network error executing HTTP request
    at com.auth0.client.mgmt.groups.RawMembersClient.get(RawMembersClient.java:140)

Additional context

No response

auth0-java version

3.5.0

Java version

25

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions