claude-code - 💡(How to fix) Fix [BUG] git push fails with HTTP 503 on git-receive-pack endpoint via the Claude Code proxy [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52242Fetched 2026-04-24 06:12:24
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Error Message

error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date

Proxy endpoint: http://127.0.0.1:<port>/git/<owner>/<repo> Cloudflare / api.anthropic.com upstream returning 503 on git-receive-pack

Fix Action

Fix / Workaround

git push should successfully push committed changes to the remote branch via the Claude Code proxy. Currently the only workaround is using MCP GitHub tools (push_files) which bypass the proxy entirely.

Code Example

error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

Proxy endpoint: http://127.0.0.1:<port>/git/<owner>/<repo>
Cloudflare / api.anthropic.com upstream returning 503 on git-receive-pack
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

git push fails with HTTP 503 through the Claude Code git proxy. Every push attempt returns:

error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly

This has persisted across multiple Claude Code sessions (several hours). git fetch and reads work fine — only writes (git-receive-pack) are broken.

What Should Happen?

git push should successfully push committed changes to the remote branch via the Claude Code proxy. Currently the only workaround is using MCP GitHub tools (push_files) which bypass the proxy entirely.

Error Messages/Logs

error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

Proxy endpoint: http://127.0.0.1:<port>/git/<owner>/<repo>
Cloudflare / api.anthropic.com upstream returning 503 on git-receive-pack

Steps to Reproduce

  1. Open a Claude Code session with a GitHub-connected repository
  2. Make changes to files and create a git commit
  3. Run: git push -u origin <branch-name>
  4. Error appears immediately: "HTTP 503 curl 22 The requested URL returned error: 503"
  5. Issue persists across all new Claude Code sessions
  6. git fetch and git pull work correctly — only push (git-receive-pack) fails

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

4.7

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by bypassing the Claude Code proxy using MCP GitHub tools (push_files) as a temporary workaround.

Guidance

  • Investigate the Cloudflare/api.anthropic.com upstream configuration to identify why it's returning a 503 error for git-receive-pack requests.
  • Verify that the issue persists when using a different Claude Code session or a different repository to isolate the problem.
  • Check the Claude Code proxy endpoint configuration to ensure it's correctly set up to handle git-receive-pack requests.
  • Consider testing the git push operation with a different proxy or no proxy to determine if the issue is specific to the Claude Code proxy.

Example

No code snippet is provided as the issue seems to be related to the proxy configuration rather than a specific code error.

Notes

The root cause of the issue is unclear, but it appears to be related to the Cloudflare/api.anthropic.com upstream returning a 503 error for git-receive-pack requests. Further investigation is needed to determine the cause and implement a permanent fix.

Recommendation

Apply the workaround by using MCP GitHub tools (push_files) to bypass the Claude Code proxy until a permanent fix is found, as it allows for successful pushes to the remote branch.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING