git:// doesn't work when cloning locally #201

Closed
opened 2023-07-12 21:10:48 +00:00 by Parking-Master · 6 comments
Parking-Master commented 2023-07-12 21:10:48 +00:00 (Migrated from github.com)

I found this problem with git after copying the command from the docs:

$ git clone https://github.com/defunctzombie/localtunnel-server.git

Cloning into 'localtunnel-server'...
remote: Enumerating objects: 770, done.
remote: Total 770 (delta 0), reused 0 (delta 0), pack-reused 770
Receiving objects: 100% (770/770), 436.21 KiB | 2.78 MiB/s, done.
Resolving deltas: 100% (412/412), done.

I found out that the git:// protocol no longer works and only works with https:// or ssh://.

Could you update the docs and change this minor detail?

Thanks!

I found [this](https://stackoverflow.com/questions/72915782/fatal-unable-to-connect-to-github-com-github-com0-140-82-121-3-errno-opera) problem with git after copying the command from the docs: ``` $ git clone https://github.com/defunctzombie/localtunnel-server.git Cloning into 'localtunnel-server'... remote: Enumerating objects: 770, done. remote: Total 770 (delta 0), reused 0 (delta 0), pack-reused 770 Receiving objects: 100% (770/770), 436.21 KiB | 2.78 MiB/s, done. Resolving deltas: 100% (412/412), done. ``` I found out that the `git://` protocol no longer works and only works with `https://` or `ssh://`. Could you update the docs and change this minor detail? Thanks!
tiagopazhs commented 2023-07-12 21:15:50 +00:00 (Migrated from github.com)

Hii Parker,

Which node version are you using?

On Wed, 12 Jul 2023 at 18:11 Parking Master @.***>
wrote:

I found this
https://stackoverflow.com/questions/72915782/fatal-unable-to-connect-to-github-com-github-com0-140-82-121-3-errno-opera
problem with git after copying the command from the docs:

$ git clone https://github.com/defunctzombie/localtunnel-server.git

Cloning into 'localtunnel-server'...
remote: Enumerating objects: 770, done.
remote: Total 770 (delta 0), reused 0 (delta 0), pack-reused 770
Receiving objects: 100% (770/770), 436.21 KiB | 2.78 MiB/s, done.
Resolving deltas: 100% (412/412), done.

I found out that the git:// protocol no longer works and only works with
https:// or ssh://.

Could you update the docs and change this minor detail?

Thanks!

—
Reply to this email directly, view it on GitHub
https://github.com/localtunnel/server/issues/201, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATONHPWKFQAHOMJZMNSVPULXP4HGRANCNFSM6AAAAAA2IBCEV4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hii Parker, Which node version are you using? On Wed, 12 Jul 2023 at 18:11 Parking Master ***@***.***> wrote: > I found this > <https://stackoverflow.com/questions/72915782/fatal-unable-to-connect-to-github-com-github-com0-140-82-121-3-errno-opera> > problem with git after copying the command from the docs: > > $ git clone https://github.com/defunctzombie/localtunnel-server.git > > Cloning into 'localtunnel-server'... > remote: Enumerating objects: 770, done. > remote: Total 770 (delta 0), reused 0 (delta 0), pack-reused 770 > Receiving objects: 100% (770/770), 436.21 KiB | 2.78 MiB/s, done. > Resolving deltas: 100% (412/412), done. > > I found out that the git:// protocol no longer works and only works with > https:// or ssh://. > > Could you update the docs and change this minor detail? > > Thanks! > > — > Reply to this email directly, view it on GitHub > <https://github.com/localtunnel/server/issues/201>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ATONHPWKFQAHOMJZMNSVPULXP4HGRANCNFSM6AAAAAA2IBCEV4> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Parking-Master commented 2023-07-12 21:19:10 +00:00 (Migrated from github.com)

It's not Node, it's git. And in the stackoverflow anwser I linked, they said that "git://" is no longer valid.

It's not Node, it's git. And in the stackoverflow anwser I linked, they said that "git://" is no longer valid.
tiagopazhs commented 2023-07-12 21:42:49 +00:00 (Migrated from github.com)

All rigth I got it.

Try it and let me know if its work for you.

git clone https://github.com/localtunnel/server

image

All rigth I got it. Try it and let me know if its work for you. <pre> git clone https://github.com/localtunnel/server </pre> ![image](https://github.com/localtunnel/server/assets/81580990/9474973f-5340-4f84-9c1c-a231439d316c)
Parking-Master commented 2023-07-12 21:49:58 +00:00 (Migrated from github.com)

Thanks! It does work, the issue was basically asking someone to change the docs because it's outdated

Thanks! It does work, the issue was basically asking someone to change the docs because it's outdated
tiagopazhs commented 2023-07-12 22:02:44 +00:00 (Migrated from github.com)

No problem 👍

Yes! unfortunaly the repository is a bit old and maybe in that time it worked.

So, I have this repository and maybe it can help you:

https://github.com/tiagopazhs/localtunnelServer-raise

I recomend you to see this two commits:

Fix esm modules

It will help you to setup the project because there are some differences between node versions.

https://github.com/tiagopazhs/localtunnelServer-raise/commit/425c9733393a13dedd32a363c325a076d4006cbf

Run server in your machine

If you debug your application you will got this problem because localtunnel uses an especific lib that don't handle with local urls.

https://github.com/tiagopazhs/localtunnelServer-raise/commit/518214b9163b4cc80b50f2d9d36686904179f344
No problem :+1: Yes! unfortunaly the repository is a bit old and maybe in that time it worked. So, I have this repository and maybe it can help you: <pre> https://github.com/tiagopazhs/localtunnelServer-raise </pre> I recomend you to see this two commits: <h3>Fix esm modules</h3> It will help you to setup the project because there are some differences between node versions. <pre> https://github.com/tiagopazhs/localtunnelServer-raise/commit/425c9733393a13dedd32a363c325a076d4006cbf </pre> <h3>Run server in your machine</h3> If you debug your application you will got this problem because localtunnel uses an especific lib that don't handle with local urls. <pre> https://github.com/tiagopazhs/localtunnelServer-raise/commit/518214b9163b4cc80b50f2d9d36686904179f344 </pre Let me know if you have new issues in the future.
Parking-Master commented 2023-07-13 00:40:29 +00:00 (Migrated from github.com)

Thank you!

Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hoelee/server#201