fix: Serve standby Actors at the platform-shaped *.localhost URL - #75
Merged
Pijukatel merged 6 commits intoSep 24, 2026
Merged
Conversation
The standbyUrl is now http://<username>--<actor-name>.localhost:3333, where the Actor owns `/` of its own origin as on *.apify.actor, so an Actor's web UI with root-relative links works. The path form stays for clients that do not resolve *.localhost, and the Actor object read from an Actor container carries the http://apify-api:3333/actor-runtime/standby/... form it can reach. Adds sample_actor_standby_web and e2e tests for an external client and an Actor-to-Actor call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013KAxkpoSLVQvpEJUANjWdp
…nto claude/magical-clarke-nx3jss
…standby requirements Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013KAxkpoSLVQvpEJUANjWdp
…work namespace Under rootless Podman 3.x the host address a container sees is the slirp4netns gateway, which reaches the host's published ports only with allow_host_loopback, so the runtime never reached a standby container's published port. The standby container now joins the runtime container's network namespace on a port of its own, as browser-view sidecars do, with the API on loopback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013KAxkpoSLVQvpEJUANjWdp
… connection Under rootless Podman 3.x the port forwarder can keep the client's end of an idle keep-alive connection open after the server closed its own, so the next request on it fails with "other side closed". Console and standby requests are retried once in that case, as a browser does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013KAxkpoSLVQvpEJUANjWdp
GET /v2/datasets, /v2/key-value-stores and /v2/request-queues ignored `unnamed` and returned every storage, so runs' default storages showed up where the platform hides them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013KAxkpoSLVQvpEJUANjWdp
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.
standbyUrlis nowhttp://<username>--<actor-name>.localhost:3333, the local counterpart ofhttps://<username>--<actor-name>.apify.actor: the Actor owns/of its own origin, one hostname per Actor.fetch('/api/...')), which under/actor-runtime/standby/<label>/escaped to the runtime's own API and broke Actors that work on the platform./actor-runtime/standby/<label>/...stays for clients that do not resolve*.localhost; the Actor object read from an Actor container carrieshttp://apify-api:3333/actor-runtime/standby/<label>, which other Actors can reach.GET /v2/datasets,/v2/key-value-stores,/v2/request-queues) return only named storages unless?unnamed=true, as on the platform.sample_actor_standby_weband e2e tests for an external client calling its standby endpoint, and another Actor's run calling it from its container.🤖 Generated with Claude Code
https://claude.ai/code/session_013KAxkpoSLVQvpEJUANjWdp