Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ljuturu opened this issue Apr 6, 2022 · 0 comments

Comments

@ljuturu
Copy link

ljuturu commented Apr 6, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant