Skip to content

[Bug]: Python SDK: Error parsing since argument in log_commits #9161

Closed as duplicate of#7830
@talSofer

Description

@talSofer

What happened?

The log_commits API endpoint accepts a since query parameter that should be a RFC3339-formatted datetime string. However, when providing a valid ISO-formatted timestamp, the API responds with a 400 Bad Request error.

lakefs.exceptions.BadRequestException: code: 400, reason: Bad Request, body: {'message': 'parameter "since" in query has an error: string doesn\'t match the format "date-time" (regular expression "^[0-9]{4}-(0[0-9]|10|11|12)-([0-2][0-9]|30|31)T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?(Z|(\\\\+|-)[0-9]{2}:[0-9]{2})?$")\nSchema:\n  {\n    "format": "date-time",\n    "type": "string"\n  }\n\nValue:\n  "2025-06-01T08:20:48.000000+0000"\n'}

Steps to reproduce:

  1. Manually create a RFC3339-formatted datetime string
  2. call branch.log(since=)

Expected behavior

No response

lakeFS version

No response

How lakeFS is installed

No response

Affected clients

No response

Relevant log output

Contact details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions