Skip to content

Json parsing exception with no explanation provided #2270

@pawel-big-lebowski

Description

@pawel-big-lebowski

When using a python client, a RunEvent does not validate a date time provided as a string. It's pretty easy to make an error like:

event = RunEvent(
        RunState.START,
        "2020-01-01", # this should be a date time, preferably with a timezone
        Run("123e4567-e89b-12d3-a456-426614174000"),
        Job("openlineage", "job"),
        "http://producer"
    )

c = OpenLineageClient(url=<<some-url>>)
c.emit(event=event)

which returns:

'{"code":400,"message":"Unable to process JSON"}'

which could be more meaningful to find a cause of an issue.

Following improvements should be done:

  • date time should be validated on a pathon client side,
  • in case of JsonProcessingException, Marquez should include exception in returned error message.

Metadata

Metadata

Labels

No labels
No labels

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