Skip to content

Connection issue, cannot request lock #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BlurEffect opened this issue Feb 6, 2020 · 1 comment
Open

Connection issue, cannot request lock #20

BlurEffect opened this issue Feb 6, 2020 · 1 comment

Comments

@BlurEffect
Copy link

BlurEffect commented Feb 6, 2020

Description

Hi everybody,
I have added the Git for Unity package to one of my projects (which was already under source control) but it seems there are some severe issues and I cannot make it work properly. My repository is not on GitHub but on Bitbucket within a corporate environment (my guess is that's where the problems start) and I am using Unity 2019.3 (but I'm having the same issue with 2019.2). We mostly want to use the plugin to be able to conveniently use the git lfs locking mechanism but everytime I request a lock, I'm getting an error message that the connection attempt failed.

GitHubForUnityRequestLock

I also checked the log (attached below) and it seems there are some general connection issues. The weird bit is this: I also have a laptop that is operated from within the same corporate network as my other computer and I am not having these kind of issues on that one. It seems to connect fine and I can set locks from within Unity. I am possibly still having a problem with locking on the laptop but I will file a separate issue for that. On the computer with the connection issues, source control with the repo generally works perfectly and I can lock files using the command line. So, it's not a general git issue. Due to the corporate environment, there is a proxy in place but my gitconfig is configured accordingly and, as mentioned, the git stuff works fine on the command line and some other git clients. Do you have any idea what might be causing the issue, are there some additional settings I have to configure for the plugin to make it work? Thank you very much in advance, I hope you can provide some assistance. Just so you know, I posted the same issue for the original "Github for Unity" plugin here on GitHub since I'm having the exact same issue with it.

Steps to Reproduce

  1. Request lock

Expected behavior: Requested lock is set

Actual behavior: Request lock fails

Reproduces how often: Every time

Additional Information

Here is the log file (I changed the repo url/name):

git-for-unity.log

@shana
Copy link
Contributor

shana commented Sep 15, 2020

@BlurEffect Yeah, it does look like all the network connections it attempts fail. This is using WebRequest, which inherits whatever proxy settings are configured in the system (i.e., whatever is configured in Internet Explorer). I'm not sure why lfs would fail in Unity and work on the command line though, but it could be worth checking whether the laptop settings are the same as the computer settings. These corporate network environment issues are very hard to debug.. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants