Search code examples
gitgit-pushhttp-status-code-504remote-repository

fatal: unable to access 'http://repo.***.com/***/***.git/': The requested URL returned error: 504


I can access self-hosted Git repository by browser. However, git push on command line throws this error:

$ git push origin m26.12.2--insert-auto-logic
fatal: unable to access 'http://repo.***.com/***/***.git/': The requested URL returned error: 504

So far, tried these without any effect:

  1. Tried Git Bash on Windows 10
  2. Changed my DNS server to 1.1.1.1 and 8.8.8.8
  3. Use tor and proxychains on Linux
  4. Use Windows 10 command prompt
  5. Tried this answer and playing around with Git proxy
  6. Removing Git credentials suggested by this post
  7. Trying to use SSH like this one

Is there anything else I can do? Maybe, how can I use this upload approach to push my commits to remote self-hosted Git? I can see the new/upload buttons when browse the remote repository on browser:

New/upload buttons on browser


Solution

  • Problem got resolved by using a system-wide VPN on Windows 10. Not sure why.