libgit2 / libgit2/libgit2sharp
HTTP error 203 when pushing
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
You are opening a bug report against the LibGit2Sharp project: we
use GitHub Issues for tracking bug reports and feature requests. If
you have a question about an API or usage, please ask on StackOverflow:
http://stackoverflow.com/questions/tagged/libgit2sharp.
Otherwise, to report a bug, please fill out the reproduction steps
(below) and delete these introductory paragraphs. Thanks!
Reproduction steps
I have a docker machine that is supposed to push some files. I am using a PAT to push to the private repo. When I try this locally it works. But on the docker machine I get this error:
LibGit2Sharp.LibGit2SharpException: unexpected HTTP status code: 403
\n at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
\n at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts)\n at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions)
\n at Project.Controllers.upload.UploadController.Upload(String id) in /src/Project/src/Project/Controllers/upload/UploadController.cs:line 63
Expected behavior
Expected behavior is for this to work on both local and docker machines
Actual behavior
It only works locally
Version of LibGit2Sharp (release number or SHA1)
I tried a couple versions. All gave the same result. Now I am on 0.27.0-preview-0034
Operating system(s) tested; .NET runtime tested
MacOS working fine. Docker linux agent does not
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Project/Controllers/upload/UploadController.cs:63、LibGit2Sharp.Core.Ensure.HandleError、Core.Proxy.git_remote_push、Network.Push を経由する、報告された呼び出しチェーンから開始します。LibGit2Sharp 0.27.0-preview-0034 を使用して、macOS と Docker Linux エージェントで同じ PAT ベースの push を再現し、その後、環境によって異なる HTTP ステータスが返される理由を特定し、push が一貫して機能することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, docker, git
- 領域
- backend, networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100