spck-issues icon indicating copy to clipboard operation
spck-issues copied to clipboard

Private repository clone not working

Open lethevimlet opened this issue 5 years ago • 30 comments

Private repository clone fails silently without any error information.

lethevimlet avatar May 05 '19 00:05 lethevimlet

+1

k41c avatar Jun 02 '19 10:06 k41c

Also experiencing

onlyrams avatar Sep 11 '19 22:09 onlyrams

Is this for Github, Gitlab, Bitbucket, or some other host?

spck-io avatar Sep 22 '19 15:09 spck-io

I am having issues when using GitHub, I don't use any of the other integrations.

Is there any logging I would be able to get for you, to help with the issue?

Thanks

onlyrams avatar Sep 22 '19 16:09 onlyrams

I have fixed this problem for gitlab. Unfortunately I do not have a private GitHub account to test private repos. This change is pushed to the latest editor version (0.6.0, which can be checked under the settings tab menu).

For 0.6.0 I will aim to fix all git integration issues with the editor.

spck-io avatar Oct 06 '19 19:10 spck-io

Would it help if I provided you a token to my private git repo?

onlyrams avatar Oct 07 '19 16:10 onlyrams

I have released a new android app 2.0.1. This was a bug in the android proxy that somehow only affected private repo cloning. Let me know if you experience issue after updating the android app. The proxy is needed as the app runs in a webview and Gitlab, Github, Bitbucket automatically rejects CORS.

spck-io avatar Nov 14 '19 05:11 spck-io

I am trying to clone locally hosted gitea private repository. It errors out saying not found. I am able to clone with git clone https://user:[email protected]

pankajsays avatar Nov 27 '19 04:11 pankajsays

Are you using an app token or a password? I have encountered this for gitlab and found when the app token doesn’t have the permissions to read/write to the repo, it will spit back a 404 error.

spck-io avatar Nov 27 '19 16:11 spck-io

I tried with token, it did not work. I made the repo public, then also it did not work. is it possible to add support for key based clone with ssh. And could you share what technology you used to build the app if you don't mind? the app is awesome

pankajsays avatar Nov 27 '19 23:11 pankajsays

I’m using service workers and isomorphic git for the git stuff. Could you share a link of the public repo that’s not working for you? I still suspect for the public repo case there’s something wrong with your token, you can delete it and try, I never had any issues with cloning public repos. Are you checking off read and write repo options when creating the token? Maybe try checking off all the permission scopes for the token? Also right now git sub modules are not supported by isomorphic git, but it shouldn’t prevent cloning.

spck-io avatar Nov 28 '19 16:11 spck-io

Bitbucket clone from private repo doesn't work as well. Used app token. Says "clone failed because http url could not be found"

zxsanny avatar Nov 30 '19 10:11 zxsanny

Same as @zxsanny clone failed because http url could not be found

dnazirso avatar Jan 08 '20 06:01 dnazirso

Please update Android app to version 3.0.6 and let me know if there are any further problems with cloning.

spck-io avatar Jan 14 '20 17:01 spck-io

I have the same issue for bitbucket repos (both public and private) on v3.0.8. Getting clone failed because http url could not be found too

orestis-z avatar Jan 26 '20 08:01 orestis-z

There seemed it be a problem specifically with Bitbucket. One issue that was fixed was the clone URL Bitbucket provided has a username which the HTML fetch API didn’t like. The git library the editor uses, parses out the username into a header which Bitbucket also didn’t like. This issue has been fixed in a editor version 0.9.6.

spck-io avatar Jan 28 '20 22:01 spck-io

Great, is the fix pushed to the play store already?

orestis-z avatar Jan 29 '20 08:01 orestis-z

Bitbucket clone from private repo doesn't work as well. Used app token. Says "clone failed because http url could not be found"

I'm getting the same issue with GitHub on a private repo

ghost avatar Feb 04 '20 06:02 ghost

Have you upgraded to the latest android app 3.0.12? Make sure to create an app token with full repository access rights. I have just cloned a private repo yesterday from bitbucket. If you are unsure about the access rights, just check all the boxes. Some hosts returns a 404 when the token does not have read permissions to the repo

spck-io avatar Feb 04 '20 12:02 spck-io

Still can't pull public repo on 3.1.0 Trying to pull this one: https://bitbucket.org/zamponotiropita/opsworks-cookbooks.git

orestis-z avatar Feb 09 '20 09:02 orestis-z

I updated the editor to 3.1.1. It seems like sometimes Bitbucket is returning an empty HTTP status message with a 200 status code which was throwing off the proxy server in Android (To avoid browser CORS issues). This was fixed by manually looking up the status message for each status code in the latest version.

spck-io avatar Feb 10 '20 14:02 spck-io

Ok works. Seems like my credentials are removed everytime that I update the android up. Which is a problem since I have to recreate the token each time as I can copy it only once from bitbucket

orestis-z avatar Feb 15 '20 10:02 orestis-z

Update: seems like credentials lost even without update (can't pull anymore)

orestis-z avatar Feb 17 '20 16:02 orestis-z

Git credentials have been moved to a file in the recent update, it is no longer stored using localStorage, this should prevent loss of credentials between updates or randomly.

spck-io avatar Feb 18 '20 00:02 spck-io

I get this when I try to pull from a public or private repo from GitHub, which I "clone" (the app basically restarts once the option is chosen).

Screenshot_2020-08-13-19-13-15-59

Vivraan avatar Aug 13 '20 13:08 Vivraan

Hello, I have this issue when cloning a private git repository, hosted on my server. I get "HTTP 301 moved permanently" but from any desktop environment it works fine. Also, I only have https (443) channel active on the server so the redirect message makes no sense to me. Let me know if I can provide more info to help understand the issue. Thank you!

Edit: my issue is now solved!

desoter avatar Mar 24 '21 12:03 desoter

Screenshot_2021-06-08-16-37-37-81 I am facing problem whenever i pull the file from spck editor. Its saying can't read poperty lenth of null. How can i fix this?

m0h4mm4d-h053n avatar Jun 08 '21 10:06 m0h4mm4d-h053n

On my android tablet, it is stuck on fetching pack file

ghost avatar Jul 12 '21 08:07 ghost

Please how do I fix this Uploading Screenshot_20210728-044154.png…

Timberwavy avatar Jul 28 '21 03:07 Timberwavy

Latest Android version and i am hitting this on private repos Screenshot_20220515-041426~2

inxomnyaa avatar May 15 '22 02:05 inxomnyaa