Skip to content

cftunnel quick 模式 UUID 解析失败: invalid UUID length: 0 #13

@1186258278

Description

@1186258278

环境

  • cftunnel 版本: 0.7.2(已是最新)
  • cloudflared 版本: 2026.1.1
  • 操作系统: Windows 11 (amd64)
  • 时间: 2026-03-01

复现步骤

cftunnel quick 8080

实际输出

2026-03-01T07:17:49Z INF Requesting new quick Tunnel on trycloudflare.com...
failed to parse quick Tunnel ID: invalid UUID length: 0
Error: cloudflared 异常退出: exit status 1

期望行为

应该成功创建 quick tunnel 并输出公网 URL。

对比验证

直接使用 cloudflared 原生命令,完全正常

cloudflared tunnel --no-autoupdate --url http://localhost:8080

输出:

2026-03-01T07:19:23Z INF Your quick Tunnel has been created!
https://weekends-months-grows-writing.trycloudflare.com
2026-03-01T07:19:24Z INF Registered tunnel connection connIndex=0 ...

分析

cftunnel 在解析 cloudflared 返回的 quick tunnel 响应时,尝试提取 tunnel ID 作为 UUID,但 cloudflared 2026.1.1 的输出格式可能发生了变化,导致 cftunnel 解析到空字符串,触发 invalid UUID length: 0 错误。

cloudflared 本身工作正常,问题出在 cftunnel 的输出解析逻辑。

临时解决方案

直接调用 cloudflared 原生命令绕过 cftunnel 的封装。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions