Skip to content

Investigate occasional JSONDecodeError in integration tests #672

Closed
apify/impit
#313

Activity

  1. added
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Nov 10, 2025
  2. Pijukatel commented on Nov 10, 2025

    @Pijukatel
    Contributor

    The issue can be reproduced by bombing API. Start some long running actor run and run for example code like this:

    from apify_client import ApifyClientAsync
    import asyncio
    
    async def main():
        client = ApifyClientAsync(token="...")
        run_client= client.run(run_id='ACTOR__RUN_ID')
        tasks  = []
        for i in range(1000):
            tasks.append(asyncio.create_task(run_client.wait_for_finish()))
    
        await asyncio.gather(*tasks)
    
    if __name__ == '__main__':
        asyncio.run(main())
    

    Initially it just keeps polling for the actor run. After a while the rate limiter kicks in and there is 429 response with API rate limit error, but after that the API starts returning 200 response with empty bytes, which causes the error in the Python client.

    Image
  3. added
    t-core-servicesIssues with this label are in the ownership of the core services team.
    on Nov 10, 2025
  4. raethlo commented on Nov 12, 2025

    @raethlo

    Note: @danpoletaev is investigating, so far we were unable to repro, we're looking if this could be a python client issue.

  5. added
    low priorityLow priority issues to be done eventually.
    bugSomething isn't working.
    on Nov 12, 2025
  6. Pijukatel commented on Nov 12, 2025

    @Pijukatel
    Contributor

    Possibly an Impit issue. In touch with @barjin

  7. removed
    t-core-servicesIssues with this label are in the ownership of the core services team.
    on Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working.low priorityLow priority issues to be done eventually.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions