Skip to content

sample_events in python client doesn't work for streaming events of a running sample #16

@ljuturu

Description

@ljuturu

Hello Team,

Events stream api with curl : /api/v0/samples/<sample_id>/events works perfectly fine but
python client - https://github.com/hatching/triage/blob/v0.1/python/triage/client.py#L488 doesn't work at all. It streams only the first event (ex: status: running) and then hangs for like 10 mins, and fails with a requests.exceptions.ChunkedEncodingError
I guess it throws the InvalidChunkLength error in between actual statuses.

I tried to stream the msgs using -

  1. res.iter_content() and
  2. read the content only when res.headers['Content-Type'] == "application/x-ndjson" but no luck. It fails to stream the msgs.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions