lakeFS icon indicating copy to clipboard operation
lakeFS copied to clipboard

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

Open talSofer opened this issue 5 months ago • 0 comments

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

talSofer avatar Jun 08 '25 12:06 talSofer