cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

🐛 Quick Tunnel Stopped Working: failed to unmarshall quick Tunnel

Open bradenhs opened this issue 2 years ago • 8 comments

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

  • OS: MacOS
  • Architecture: ARM
  • Version: 2023.5.0

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?

bradenhs avatar May 19 '23 20:05 bradenhs

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

benferns avatar Jun 22 '23 07:06 benferns

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

JJMorty avatar Dec 03 '23 17:12 JJMorty

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

luckydevil13 avatar Jan 04 '24 07:01 luckydevil13

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

caewok avatar Jan 07 '24 14:01 caewok

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.

Walledgarden avatar Jan 28 '24 21:01 Walledgarden

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

moomoo-dev avatar Mar 14 '24 00:03 moomoo-dev

@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...

MegaMaddin avatar Mar 14 '24 07:03 MegaMaddin