VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

behind http proxy - all PR operations work, except CREATE PR - times out

Open timor-raiman opened this issue 6 years ago • 5 comments

  • GitHub Extension for Visual Studio version: 2.4.3.1737
  • Visual Studio version: 14.0.25431.01 Update 3

After having all our proxy configuration correct on the machine (.gitconfig for http/s and .ssh/config for socks which is not used anyway), and installing the extension:

clone, pull, push - work out of the box get list of PR - works but is slow (5-10) seconds update list of PR - works but is slow checkout a PR - works but is slow create new PR - fails on timeout

Now, to attempt a resolution per https://stackoverflow.com/a/41936608, we added: <defaultProxy useDefaultCredentials="true" enabled="true"> </defaultProxy> to our devenv.exe.config. now:

clone, pull, push - still work get list of PR - works and is instantaneous update list of PR - works and is instantaneous checkout a PR - works and is instantaneous create new PR - still fails on timeout

timor-raiman avatar Apr 12 '18 09:04 timor-raiman

Hi @timor-raiman sorry to hear you're having problems creating PRs. Could you reproduce the error and send your log file? You can find it at: %LocalAppData%\GitHubVisualStudio\extension.log

meaghanlewis avatar Apr 16 '18 18:04 meaghanlewis

Hi @meaghanlewis Me and @timor-raiman have the same issue. The log is looks like this:

2018-01-09 09:53:34.0253|INFO|thread: 1|RepositoryHosts|Log in to GitHub.com host 'https://api.github.com/' with username 'user' SUCCEEDED
2018-01-11 14:04:38.3233|ERROR|thread:90|PullRequestCreationViewModel|LibGit2Sharp.LibGit2SharpException: failed to send request: The operation timed out

   at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
   at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable`1 refSpecs, GitPushOptions opts)
   at LibGit2Sharp.Network.Push(Remote remote, IEnumerable`1 pushRefSpecs, PushOptions pushOptions)
   at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions)
   at LibGit2Sharp.Network.Push(Remote remote, String objectish, String destinationSpec, PushOptions pushOptions)
   at GitHub.Services.GitClient.<>c__DisplayClass7_0.<Push>b__0() in C:\projects\visualstudio\src\GitHub.App\Services\GitClient.cs:line 64
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GitHub.Services.PullRequestService.<PushAndCreatePR>d__35.MoveNext() in C:\projects\visualstudio\src\GitHub.App\Services\PullRequestService.cs:line 501

In the GUI it looks like this:

(https://user-images.githubusercontent.com/35214881/39294001-31499736-4943-11e8-9281-be8b6d31da87.png)

EranAvraham avatar Apr 26 '18 08:04 EranAvraham

hi all, was this issue resolved, I get the same error as EranAvraham. Frustrating as this is happening only for create PR.

antonyGeorge avatar Sep 27 '19 16:09 antonyGeorge

I am also facing the same pull request timeout issue. Anyway to increase the timeout or resolve this issue?

kokmang avatar Mar 03 '21 07:03 kokmang

still seen this issue with vs2019 + Github extension 2.11.106.19330 can do pull, push. but create PR timed out

yhe13 avatar Mar 05 '21 04:03 yhe13