Repository navigation
Conversation
Since mid-November 2026 the box's load balancer answers every gateway call with 404 "The request could not be routed" unless it carries x-anyrun-port-token. EnsureSandBox returns the token as gatewayPortToken and the Grok Bot app (1.1) sends it on every gateway request; the CLI now adds it to the EnsureSandBox-derived gateway headers. The token only goes to the allowlisted gateway URL and is never logged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
🦋 Changeset detectedLatest commit: 86046d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Independently verified this fix against Grok Bot 1.3.0 on macOS, using Node.js 24.22.1. This also reproduces and resolves #171 in that environment. The stock npm
The original commit and authorship are preserved unchanged on https://github.com/clement006/grok-bot-cli/tree/fix/gateway-port-token while awaiting an upstream release. Thanks for the fix. |
Since mid-November 2026, every gateway call (
bots list,thread, ...) fails withlistAgents failed: 404 The request could not be routed. The load balancer in front of the box now requires thex-anyrun-port-tokenheader.EnsureSandBoxalready returns that token asgatewayPortToken, and the Grok Bot app (1.1.0) sends it on every gateway request. This PR adds it to the headers derived fromEnsureSandBox(headersFromEnsureSandbox), next to the network token.test/gateway.test.js.npm testpasses (510).gbot bots listworks again without any local patch.🤖 Generated with Claude Code