microsoft / microsoft/VFSForGit
Azure DevOps GVFS Error
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 474
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 8
Description
Hello VFS Team,
I have configured central Proxy Server for Azure DevOps Server on-premises to consume as GVFS proxy by adding the Repository using below command:
TFSConfig Proxy /add /Collection:https://xxxxxxxxxxxxxxxxxxxxxxxxx/tfs/xxxxxxxxxxx /inputs:GvfsProjectName=Proj1;GvfsRepositoryName=Repo1
And tried to clone from client using GVFS command like below example
gvfs clone https://AzureDevOpsServer/_git/Repo1 --cache-server-url=https://xxxxxxxxxxxxxxxxxxxxxxxxx/repoid1
replacing the VSTS clone url, the cache server address, and the repository id in the cache-server-url as appropriate.
But I am getting following error:
NetworkError {"Area":"GitObjects","Exception":"GVFS.Common.Http.GitObjectsHttpException: Server returned error code 400 (BadRequest). Your PAT may be expired and we are asking for a new one. Original error message from server: A valid Basic Authorization header is required.","Operation":"DownloadAndSaveObjects","WillRetry":false,"ErrorMessage":"GVFS.Common.Http.GitObjectsHttpException: Server returned error code 400 (BadRequest). Your PAT may be expired and we are asking for a new one. Original error message from server: A valid Basic Authorization header is required."}
[2021-09-29 13:28:30.4459 +05:30] Error {"ErrorMessage":"Could not download commit cbb7e0b333b8a6d1745f8ec36cdd612ba430bf69 from: http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:8082/repoid/gvfs/objects"}
GVFSClone (Stop) {"DurationMs":8131}
Curious to learn if i am missing any configuration
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing and reproducing the TFSConfig Proxy /add configuration and the gvfs clone command with --cache-server-url. Trace the reported 400 BadRequest and missing Basic Authorization header through the clone's GitObjects request; done means the configured proxy can complete the clone without the authorization error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, git
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100