godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
717 stars 75 forks source link

Can't get through auth to push changes from within editor #192

Open wrightgabriel0220 opened 1 year ago

wrightgabriel0220 commented 1 year ago

Git is configured and working fine in the terminal for this project's repository, but as soon as we attempt to push changes via the editor's push button, we get the following error:

image

This is even while using a PAT as the password. We entered our usernames and PATs via Project >> Version Control >> Version Control Settings.

maksym33 commented 1 year ago

Same here

Phoenixkaze commented 1 year ago

Same here on Godot 4.0.3. But with a different error message. Using a GitHub PAT as password.

image

charlie-s-lab commented 1 year ago

Git is configured and working fine in the terminal for this project's repository, but as soon as we attempt to push changes via the editor's push button, we get the following error:

image

This is even while using a PAT as the password. We entered our usernames and PATs via Project >> Version Control >> Version Control Settings.

im getting the same error hwile trying to use godot 4.0.4 but it is possible to push with other apps and the same credentials

griessbreilp commented 11 months ago

image Jep, same here. Can push, pull, what ever via terminal and vs code and other stuff, but not with the Godot Git Plugin. It takes 1-2 minutes of freezing and then I get the error. Tried reinitialising, checking it out again, deleting and reinstalling the plugin, changing credentials, installing vs stuff, nothing works :/

babel5405 commented 10 months ago

Tried setting this up with a new project and I'm seeing the same issues, using an SSH key for auth.

Using Plugin Version 3.1.0 from the AssetLib Running on windows 11 with Godot version 4.2.1-stable-win64 Settings configured via Project -> Version Control -=> Version Control Settings Using a username and SSH Key

The GUI will freeze, either for a few seconds or up to a couple of minutes with the arrow blue. Waiting lets this resolve and the arrow will turn white again however the action was not completed and an error appears in the output.

core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -16: Failed to retrieve list of SSH authentication methods: Failed getting response in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532 GitPlugin: Performing push to origin

The GUI's seem to work for tracking changes and managing commits however pushing has to be done via terminal.

Note: The same error seems to occur when trying to use the GUI to pull as well.

babel5405 commented 10 months ago

Tried a few times with different origins (One, original from the GIT repo, and one created in Godot via the plugin.)

The original is origin, the one created in godot is GitHub. Note that there are a few distinct error messages being output.

core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -16: Failed to retrieve list of SSH authentication methods: Failed getting response in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532 GitPlugin: Performing push to origin

core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "GitHub". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -1: failed to start SSH session: Unable to exchange encryption keys in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532 GitPlugin: Performing push to GitHub

core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -16: Failed to retrieve list of SSH authentication methods: Failed getting response in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532 GitPlugin: Performing push to origin

core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -16: Failed to retrieve list of SSH authentication methods: Failed getting response in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_pull#L435 GitPlugin: Performing pull from origin

core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "GitHub". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -1: too many redirects or authentication replays in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532 GitPlugin: Performing push to GitHub

Glitchy-Sheep commented 9 months ago

Yeah guys, I have same errors all the time.

Any thoughts, what can I do with it?

I can commit and push via ssh url, everything is completely fine, but nothing works with GUI of the plugin, it freezes every time...

One more question, do I have to fill in any fields other than key files if I'm using ssh and have git configured? I don't need username (supposedly) if I have it in the config, right? Much less a password if I'm using ssh? The only thing I fill in is the passphrase for the keys..

(I use 4.x godot)

Calinou commented 9 months ago

One more question, do I have to fill in any fields other than key files if I'm using ssh and have git configured? I don't need username (supposedly) if I have it in the config, right?

If you have a SSH host alias configured in your SSH configuration file, the plugin should use it automatically so you won't need to enter it manually (as long as you specify the SSH alias as the Git server address).