V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
stardustree
V2EX  ›  全球工单系统

飞书机器人神奇的 Bug,求助

  •  
  •   stardustree · 51 天前 · 491 次点击
    这是一个创建于 51 天前的主题,其中的信息可能已经有所发展或是发生改变。

    调用机器人接口发送消息时,会报错 code 11246 。去除掉第八行\t 后的字符串,就不报错了,非常诡异神奇。

    {
        "msg_type": "interactive",
        "card": {
            "elements": [
                {
                    "tag": "div",
                    "text": {
                        "content": "\n###  \n\t xx",
                        "tag": "lark_md"
                    }
                },
                {
                    "tag": "div",
                    "text": {
                        "content": "<at id=all></at>",
                        "tag": "lark_md"
                    }
                }
            ],
            "header": {
                "title": {
                    "content": " [告警] [警告]xxxxxx",
                    "tag": "plain_text"
                },
                "template": "orange"
            }
        }
    }
    
    6 条回复    2024-03-07 16:23:11 +08:00
    Morriaty
        1
    Morriaty  
       51 天前
    飞书不有技术客服吗,响应还挺及时的,干嘛这里问-_-||
    stardustree
        2
    stardustree  
    OP
       51 天前
    @Morriaty 我们只是服务商,用机器人做了个二次开发的功能,飞书的客户不搭理我们
    perfectlife
        3
    perfectlife  
       51 天前
    飞书 脑残的地方很多,里面有个 gitlab 连接器,不管你项目有多少个,它默认只显示 20 个项目,就很离谱
    declandragon
        4
    declandragon  
       51 天前
    https://open.feishu.cn/tool/cardbuilder

    在上面试了你的 card 对象,确实是不支持 \t ,去掉就是正常的
    maemual
        6
    maemual  
       51 天前
    @maemual #5 看文档本来也不支持 \t 呀。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   884 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 20:22 · PVG 04:22 · LAX 13:22 · JFK 16:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.