question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This morning it seems that the server has a problem: while refreshing the url through the loca.lt url I get errors most of the time:

  • A 404 page error (but it is actually the good response from my server for the url I test)
  • A 500 internal server error (which doesn’t occur on my local server, I’ve checked the logs)
  • A PR_END_OF_FILE_ERROR Secure connexion error

I use localtunnel to debug a local Stripe Webhook and events send by Stripe fail with a TLS error. Earlier this morning the events were working OK and then it has started to fail and never worked again.

Here the command that I’ve been using for months: lt --port 80 --subdomain mypublicsubdomain --local-host mylocal.domain.loc

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:32

github_iconTop GitHub Comments

4reactions
nucleiiscommented, Mar 3, 2022

Seems like 500 error is back again

3reactions
sauntimocommented, Mar 10, 2022

@TheBoroer Here’s a more complete curl response, hopefully it’s helpful. However, I run my local tunnel with lt --port 8080 --subdomain [mysubdomain] --print-requests, I don’t use the --local-host flag, and I was still having issues yesterday. That being said, it seems to be working ok today!

➜  ~ curl -kvI https://[mysubdomain].loca.lt/health-check
*   Trying 193.34.76.44:443...
* Connected to [mysubdomain].loca.lt (193.34.76.44) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*.loca.lt
*  start date: Feb 26 03:29:46 2022 GMT
*  expire date: May 27 03:29:45 2022 GMT
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fa29f80e200)
> HEAD /health-check HTTP/2
> Host: [mysubdomain].loca.lt
> user-agent: curl/7.77.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
HTTP/2 200
< server: nginx/1.17.9
server: nginx/1.17.9
< date: Thu, 10 Mar 2022 09:38:37 GMT
date: Thu, 10 Mar 2022 09:38:37 GMT
< content-type: application/json; charset=utf-8
content-type: application/json; charset=utf-8
< content-length: 34
content-length: 34
< x-powered-by: Express
x-powered-by: Express
< vary: Origin
vary: Origin
< etag: W/"22-UeKz70QMwQtfie5Non1AjoAq5Y8"
etag: W/"22-UeKz70QMwQtfie5Non1AjoAq5Y8"
< x-robots-tag: noindex, nofollow, noarchive, nosnippet, nositelinksearchbox, noimageindex
x-robots-tag: noindex, nofollow, noarchive, nosnippet, nositelinksearchbox, noimageindex
< localtunnel-agent-ips: ["some-ip-address"]
localtunnel-agent-ips: ["some-ip-address"]

I ran my local tunnel in debug mode and generated a few slack events to see what would happen, here’s the out put from that:

➜  ~ DEBUG=localtunnel:client lt --port 8080 --subdomain [mysubdomain]
  localtunnel:client got tunnel information {
  id: '[myId]',
  port: 39893,
  max_conn_count: 10,
  url: 'https://[mysubdomain].loca.lt'
} +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +1ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +1ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
your url is: https://[mysubdomain].loca.lt
  localtunnel:client tunnel open [total: 1] +181ms
  localtunnel:client connecting locally to http://localhost:8080 +177ms
  localtunnel:client tunnel open [total: 2] +1ms
  localtunnel:client connecting locally to http://localhost:8080 +1ms
  localtunnel:client tunnel open [total: 3] +0ms
  localtunnel:client connecting locally to http://localhost:8080 +0ms
  localtunnel:client tunnel open [total: 4] +0ms
  localtunnel:client connecting locally to http://localhost:8080 +0ms
  localtunnel:client tunnel open [total: 5] +0ms
  localtunnel:client connecting locally to http://localhost:8080 +0ms
  localtunnel:client tunnel open [total: 6] +1ms
  localtunnel:client connecting locally to http://localhost:8080 +1ms
  localtunnel:client tunnel open [total: 7] +0ms
  localtunnel:client connecting locally to http://localhost:8080 +0ms
  localtunnel:client tunnel open [total: 8] +0ms
  localtunnel:client connecting locally to http://localhost:8080 +0ms
  localtunnel:client tunnel open [total: 9] +1ms
  localtunnel:client connecting locally to http://localhost:8080 +1ms
  localtunnel:client tunnel open [total: 10] +0ms
  localtunnel:client connecting locally to http://localhost:8080 +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +1ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client connected locally +0ms
  localtunnel:client local connection closed [false] +46s
  localtunnel:client remote close +66ms
  localtunnel:client tunnel dead [total: 9] +46s
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client tunnel open [total: 10] +87ms
  localtunnel:client connecting locally to http://localhost:8080 +87ms
  localtunnel:client connected locally +0ms
  localtunnel:client local connection closed [false] +496ms
  localtunnel:client remote close +87ms
  localtunnel:client tunnel dead [total: 9] +583ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client tunnel open [total: 10] +106ms
  localtunnel:client connecting locally to http://localhost:8080 +106ms
  localtunnel:client connected locally +1ms
  localtunnel:client local connection closed [false] +18s
  localtunnel:client remote close +82ms
  localtunnel:client tunnel dead [total: 9] +18s
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client tunnel open [total: 10] +90ms
  localtunnel:client connecting locally to http://localhost:8080 +90ms
  localtunnel:client connected locally +1ms
  localtunnel:client local connection closed [false] +422ms
  localtunnel:client remote close +86ms
  localtunnel:client tunnel dead [total: 9] +509ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client tunnel open [total: 10] +89ms
  localtunnel:client connecting locally to http://localhost:8080 +89ms
  localtunnel:client connected locally +1ms
  localtunnel:client local connection closed [false] +7s
  localtunnel:client remote close +83ms
  localtunnel:client tunnel dead [total: 9] +7s
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client tunnel open [total: 10] +87ms
  localtunnel:client connecting locally to http://localhost:8080 +87ms
  localtunnel:client connected locally +1ms
  localtunnel:client local connection closed [false] +578ms
  localtunnel:client remote close +85ms
  localtunnel:client tunnel dead [total: 9] +664ms
  localtunnel:client establishing tunnel http://localhost:8080 <> localtunnel.me:39893 +0ms
  localtunnel:client tunnel open [total: 10] +88ms
  localtunnel:client connecting locally to http://localhost:8080 +88ms
  localtunnel:client connected locally +1ms
Read more comments on GitHub >

github_iconTop Results From Across the Web

Localtunnel ~ Expose yourself to the world
Localtunnel allows you to easily share a web service on your local development machine without messing with DNS and firewall settings.
Read more >
localtunnel - npm
When localtunnel is installed globally, just use the lt command to start the tunnel. lt --port 8000. Thats it! It will connect to...
Read more >
Localtunnel running problem, doesn't work at all
It seems like localtunnel is currently down. Click here to go to the github issues page for more information and updates.
Read more >
localtunnel - Bountysource
I've noticed that in some cases when a user starts a localtunnel client - then exits it (via ctrl + c) - the...
Read more >
LOCA HOUSE | STREETWEAR | EVERYBODY'S WELCOME
Streetwear that translates and easily elevates your style. Loca House is an Australian online fashion boutique. Free shipping and Afterpay available.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found