Repository navigation
Conversation
Moves the CLI to apify-client v3 (`^3.0.0-beta.115`, the first published build with web streams), which sends requests through `fetch` instead of axios. - Model types follow the renamed OpenAPI names, with the new null checks. - The local runtime "not running" check is a `fetch` wrapper on a `FetchHttpClient` instead of an axios adapter; default headers use the client's `headers` option. - Log streaming and `key-value-stores get-value` consume web streams. - Actor version uploads in `push` use the long timeout tier, since most calls now default to 5 seconds instead of 360. - The bundle build no longer injects `proxy-agent`, which the client dropped. - Minimum Node.js is 22.15, as the client requires.
commit: |
B4nan
added a commit
to apify/apify-client-js
that referenced
this pull request
Nov 25, 2026
`versions().create()` and `version().update()` can carry the version's source files, which is megabytes of body, but they defaulted to the 5 s `short` tier. A body that isn't a stream has to be sent within the timeout, so a slow uplink kept re-uploading it across retries. Both default to `long` now. Found while moving the CLI to v3 in apify/apify-cli#1644. The proxy docs also mention `http.setGlobalProxyFromEnv()` (Node.js 24.14+), for tools that can't control how Node.js is started.
apify-client v3 no longer reads `HTTP_PROXY`/`HTTPS_PROXY` itself, so the CLI turns the proxy on at startup with `http.setGlobalProxyFromEnv()` when one of them is set. That needs Node.js 24.14; older versions still need `NODE_USE_ENV_PROXY=1`, and the Bun bundles read the variables on their own.
The RC defaults Actor version uploads to the long timeout tier itself, so `push` no longer passes it.
B4nan
marked this pull request as draft
November 25, 2026 22:58
This branch has not been deployed
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.
Moves the CLI from
apify-clientv2 to v3, so API requests go throughfetchinstead of axios.package.jsonpins^3.0.0-rc.2, which also covers the stable release.Most of the diff is renamed model types and the null checks that come with them. The rest:
fetchwrapper on aFetchHttpClientnow (createApifyClient()), since axios interceptors are gone. Default headers go through the client'sheadersoption.key-value-stores get-valueread web streams.proxy-agent.What changes for users:
HTTP_PROXY/HTTPS_PROXYkeep working on Node.js 24.14+ (the CLI callshttp.setGlobalProxyFromEnv()at startup) and in the Bun bundles. On an older Node.js they needNODE_USE_ENV_PROXY=1(22.21+). The CLI's ownfetchcalls go through the proxy now too.set-valuewith a non-JSON string and the default JSON content type stores the string as is. Axios used to wrap it in quotes.