Repository navigation
fix: type example_run_input_body as str - #1105
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1105 +/- ##
==========================================
- Coverage 95.40% 95.39% -0.02%
==========================================
Files 61 61
Lines 5880 5880
==========================================
- Hits 5610 5609 -1
- Misses 270 271 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vdusek
marked this pull request as ready for review
October 8, 2026 07:44
This was referenced Oct 8, 2026
vdusek
added a commit
that referenced
this pull request
Oct 9, 2026
…1084) Python twin of apify/apify-client-js#1105. `call(logger=...)` and `get_streamed_log()` sometimes redirected no log lines. Before a run writes its first line, the API answers `GET /logs/:id?stream=1` with an empty 200 that closes at once, and `StreamedLog` / `StreamedLogAsync` took that as the whole log. Both now reopen an empty stream after a pause that starts at 0.5 s and doubles up to 5 s. If `stop()` comes before anything has arrived, they read the log once with `get_as_bytes()`. `start()` resets that state, so a restarted instance behaves the same. Tests cover the same cases as #1105 for both classes and both HTTP clients, plus the backoff and a restart. *✍️ Drafted by Claude Code*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ExampleRunInput.bodyonly accepts a string, butactor.update()andactors().create()typedexample_run_input_bodyasAny. A dict passed the type checker and then failed with a pydanticValidationError. The parameter is nowstr | Nonein the sync and async clients, the same asbody: stringin the JS client, and the docstring says to pass a serialized string such asjson.dumps(input).Closes: #1102
✍️ Drafted by Claude Code