localtunnel / server

server for localtunnel.me
https://localtunnel.me
MIT License
3.05k stars 991 forks source link

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

Closed Parking-Master closed 1 year ago

Parking-Master commented 1 year ago

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!

j-peace commented 1 year ago

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 1 year ago

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

j-peace commented 1 year ago

All rigth I got it.

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

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

image

Parking-Master commented 1 year ago

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

j-peace commented 1 year ago

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:

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
Parking-Master commented 1 year ago

Thank you!