Skip to content

Using impit for for dataset.push_items can cause Error(IncompleteMessage) #244

@Pijukatel

Description

@Pijukatel

Now impit is used as default client for apify-client-python
It seems that it can cause some errors for dataset operations

for example:

  File "/usr/local/lib/python3.13/site-packages/apify_client/clients/resource_clients/dataset.py", line 1044, in push_items
    await self.http_client.call(
    ...<7 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/apify_client/_http_client.py", line 276, in call
    return await retry_with_exp_backoff_async(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/apify_client/_utils.py", line 201, in retry_with_exp_backoff_async
    return await async_func(stop_retrying, attempt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/apify_client/_http_client.py", line 240, in _make_request
    response = await impit_async_client.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
impit.HTTPError: The internal HTTP library has thrown an error:
reqwest::Error {
    kind: Request,
    url: "http://10.0.46.51:8010/v2/datasets/oCWSWFberpn5TiAhH/items",
    source: hyper_util::client::legacy::Error(
        SendRequest,
        hyper::Error(
            IncompleteMessage,
        ),
    ),
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions