cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
9.25k stars 818 forks source link

🐛 Quick Tunnel Stopped Working: failed to unmarshall quick Tunnel #972

Open bradenhs opened 1 year ago

bradenhs commented 1 year ago

Describe the bug

Quick tunnels have stopped working for me all of the sudden. I get a "failed to unmarshall quick Tunnel: invalid character 'e' looking for beginning of value" message.

To Reproduce

❯ ./cloudflared-2023.5.0 tunnel --url=http://localhost:5848 
2023-05-19T20:42:42Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
2023-05-19T20:42:42Z INF Requesting new quick Tunnel on trycloudflare.com...
failed to unmarshal quick Tunnel: invalid character 'e' looking for beginning of value

Tunnel ID : n/a cloudflared config: none

Expected behavior

I'd expect a tunnel to be created instead of getting what looks like some sort of runtime exception.

Environment and versions

Additional context

Been messing around with this extensively and it just stopped working out of the blue. Perhaps I hit some unspecified limit that the client doesn't have a nice error message for?

benferns commented 1 year ago

Just experiencing this as well on both 2023.4.1 and 2023.6.1 after hopping between a few projects using tunnels without a config file (though there is one in my usr dir)

OS: MacOS 13.3.1 Architecture: ARM Version: 2023.4.1 and 2023.6.1

JJMorty commented 11 months ago

this is still an issue on 2023.10.0

OS Ubuntu 22.04 Architecture Intel Version 2023.10.0

cloudflared is already the newest version (2023.10.0). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

cloudflared

2023-12-03T17:01:12Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps 2023-12-03T17:01:12Z INF Requesting new quick Tunnel on trycloudflare.com... failed to unmarshal quick Tunnel: invalid character 'e' looking for beginning of value

luckydevil13 commented 10 months ago

same here ime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps 2024-01-04T07:49:56Z INF Requesting new quick Tunnel on trycloudflare.com... failed to unmarshal quick Tunnel: invalid character 'e' looking for beginning of value

caewok commented 10 months ago

Stopped working for me too; same error as OP. This would be using Ubuntu 22.04.3.

Walledgarden commented 9 months ago

As OP mentioned, this problem seems to be related to some ratelimit. As of now, this is still does not show a sufficient error message and leads to confusion.

moomoo-dev commented 8 months ago

So this was never fixed, or is there a work around for this ?

MegaMaddin commented 8 months ago

@moomoo-dev Since this seems to be missing error handling when being rate-limited, what worked for me was waiting for an hour or so until re-opening the next tunnel. As mentioned earlier, this can be certainly worked-around by creating a pre-defined tunnel, but I also agree that this should be fixed within cloudflared. I actually really like that no-setup tunnel feature and use this quite often for local development purposes...