Environment
gh aw version: v0.76.1
- Proxy image:
ghcr.io/github/gh-aw-mcpg:v0.3.19
- GitHub host: GHE Cloud with data residency (
sj.ghe.com)
- Workflow:
repo-assist
What happened
The agent job fails immediately after the DIFC proxy starts. The Copilot agent
process never launches (/tmp/gh-aw/agent-stdio.log is never created) and the
MCP gateway PID is never captured.
The last line before exit code 1 in the agent job logs is:
HTTP 404: 404 Not Found (https://localhost:18443/api/graphql (https://localhost:18443/api/graphql))
The proxy starts successfully and correctly routes REST (/api/v3) — the
pre-run bash step completes fine, fetching issues and PRs. But the Copilot agent
binary fails when it first hits the GraphQL endpoint through the proxy.
Relevant log excerpt
[startup] Upstream GitHub API URL: https://copilot-api.sj.ghe.com (https://copilot-api.sj.ghe.com) ✓
DIFC proxy ready on port 18443 ✓
GH_HOST: localhost:18443
GITHUB_API_URL: https://localhost:18443/api/v3 (https://localhost:18443/api/v3)
GITHUB_GRAPHQL_URL: https://localhost:18443/api/graphql (https://localhost:18443/api/graphql)
...
HTTP 404: 404 Not Found (https://localhost:18443/api/graphql (https://localhost:18443/api/graphql)) ✗
##[error]Process completed with exit code 1.
[detect-agent-errors] Log file not found: /tmp/gh-aw/agent-stdio.log
Gateway may not have been started or PID was not captured
Expected behaviour
The DIFC proxy should correctly forward GraphQL requests to
https://copilot-api.sj.ghe.com/api/graphql (or the appropriate GHE endpoint),
the same way it does for REST requests.
Steps to reproduce
Run any workflow on a GHE Cloud data residency instance with engine.api-target
set to copilot-api.<enterprise>.ghe.com.
Reference
Environment
gh awversion: v0.76.1ghcr.io/github/gh-aw-mcpg:v0.3.19sj.ghe.com)repo-assistWhat happened
The
agentjob fails immediately after the DIFC proxy starts. The Copilot agentprocess never launches (
/tmp/gh-aw/agent-stdio.logis never created) and theMCP gateway PID is never captured.
The last line before
exit code 1in the agent job logs is:HTTP 404: 404 Not Found (https://localhost:18443/api/graphql (https://localhost:18443/api/graphql))
The proxy starts successfully and correctly routes REST (
/api/v3) — thepre-run bash step completes fine, fetching issues and PRs. But the Copilot agent
binary fails when it first hits the GraphQL endpoint through the proxy.
Relevant log excerpt
[startup] Upstream GitHub API URL: https://copilot-api.sj.ghe.com (https://copilot-api.sj.ghe.com) ✓
DIFC proxy ready on port 18443 ✓
GH_HOST: localhost:18443
GITHUB_API_URL: https://localhost:18443/api/v3 (https://localhost:18443/api/v3)
GITHUB_GRAPHQL_URL: https://localhost:18443/api/graphql (https://localhost:18443/api/graphql)
...
HTTP 404: 404 Not Found (https://localhost:18443/api/graphql (https://localhost:18443/api/graphql)) ✗
##[error]Process completed with exit code 1.
[detect-agent-errors] Log file not found: /tmp/gh-aw/agent-stdio.log
Gateway may not have been started or PID was not captured
Expected behaviour
The DIFC proxy should correctly forward GraphQL requests to
https://copilot-api.sj.ghe.com/api/graphql(or the appropriate GHE endpoint),the same way it does for REST requests.
Steps to reproduce
Run any workflow on a GHE Cloud data residency instance with
engine.api-targetset to
copilot-api.<enterprise>.ghe.com.Reference