Hello,
I am using SourceTree v 2.6.10.0 and Finish feature in gitflow hangs forever with this in output window:
sh.exe "C:\Program Files\Git\usr\bin\git-flow" feature finish -k TEST_v2018-34
fatal: HttpRequestException encountered.
Ett fel uppstod n�r beg�ran skickades.
System git 2.18.0
Any suggestions?
Thank you :)
Hi
I believe the problem is due to the a buggy version of the Git Credential Manager for Windows, GCMW, that ships with Git for Windows. v1.17.1 fixes this https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.1
Sourcetree attempts to bypass broken versions of the GCM in favour of a fixed version it bundles, but it cannot tell git-flow, or other extensions like git-lfs, to do this, they will revert back to the default broken version bundled with Git for Windows.
Workaround
You saved my day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And you also saved MY day! Thank you minnsey.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FWIW, I ran into a very similar problem today using the Embedded Git v2.17.1 & no known hooks installed. I thought I may be behind on my Git version, so attempted to update the Embedded version ... this ended in an error message on every attempt, so I checked my task manager and found some zombie Git processes hanging around. After killing them, and closing all running apps, the embedded Git finally updated, but this did not fix the original problem.
I had to login to my remote Git account (bitbucket) and manually merge my feature branch with "develop", then delete the feature branch. As you can imagine, my local get repo was very confused when I restarted SourceTree. Eventually SourceTree did get back in sync ... I think I had to first Pull "develop", then manually delete the now bogus feature branch.
After all that, I was able to Git-flow create a new feature and move forward with work, although i haven't tried to "finish" that new feature branch yet. The problem may persist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Got the exact same issue, only for finish feature and follow your advises when I found lots of Git tasks. Even after killing all of them and rebooting I still got:
sh.exe C:\Users\xxxxx\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\git-flow feature finish xxxxx
fatal: HttpRequestException encountered.
An error occurred while sending the request.
But I don't have any problem with pull/push, pretty weird. Watching this thread in case one day got any solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just this morning I got the error to go away by creating new SSH Keys in SourceTree and then associating the public key with my bitbucket account. I think that maybe something happened to my old key? ...but that wouldn't explain why other git features work flawlessly.
I dunno. Give it a try to see if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having this issue on mac version 3.12 (216)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the exact issue. With the newly installed Git for Windows, I thought everything was resolved. But seems like most of it, while leaving the "Finish Feature" still having this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There appears to be an issue with the Git Credential Manager 1.18.x bundled with Git 2.19.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also facing issue in Finish Feature.
Getting error like:
sh.exe C:\Users\Lenovo\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\git-flow feature finish splsh_screen
fatal: HttpRequestException encountered.
An error occurred while sending the request.
it is running forever.
Other features like, merge, create new are fine.
Please suggest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it is very likely that it is due to authentication issues. Please try upgrading your Git , and Git Credential Manager which is bundled with Git for Windows, to 2.20.1 or higher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
That looks like a web request error. AFAIK Git-flow does not make any web requests during its processing, do you have any git hooks installed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For info I got this issue with both embedded and system GIT. I have no issue when pushing or pulling, this only occurs when doing Git flwo > Finish feature:
sh.exe C:\Users\xxxxx\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\git-flow feature finish xxxxx
fatal: HttpRequestException encountered.
An error occurred while sending the request.
That may help identify the root cause.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just looked at what happened during PUSH and found this:
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/xxxxx/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE" push -v --tags origin develop:develop
fatal: HttpRequestException encountered.
An error occurred while sending the request.
POST git-receive-pack (202 bytes)
remote:
remote: Create pull request for develop:
remote: https://bitbucket.org/xxxxx/rapid4cloud-platform/pull-requests/new?source=develop&t=1
remote:
Pushing to https://xxxxx@bitbucket.org/xxxxxx/xxxxxx.git
To https://bitbucket.org/xxxxx/xxxxx.git
So it seems issue is also during other command but somehow PUSH is trying another way (POST) and it is working. But not feature finish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I've tried to remove Sourcetree and all temp files.
Removed my creds in the gui.
Still getting that problem, but merging manually works fine (sourcetree is no happy about that).
Current solution is to ask someone else to checkout that feature and finish it.
Seems to be working in older versions without problems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.