You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document why the default request compression differs from the JS client #1179
The JS client defaults to brotli at quality 6 (apify_client.ts#L63), built on node:zlib, so it needs no extra dependency. It compresses only in Node.js; a browser sends bodies uncompressed (runtime/web.ts#L12-L17).
The difference has a reason: brotli is a native package in Python, and making it a default would add a required compiled dependency. The API accepts both encodings.
Recommendation
Keep gzip as the Python default. Extend the compression docstring in ApifyClient and ApifyClientAsync to state the default and that 'brotli' needs pip install "apify-client[brotli]", so users comparing the two clients can find why they differ.
Activity