工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
stardustree

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

  •  
  •   stardustree · Mar 7, 2024 · 1300 views
    This topic created in 843 days ago, the information mentioned may be changed or developed.

    调用机器人接口发送消息时,会报错 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 replies    2024-03-07 16:23:11 +08:00
    Morriaty
        1
    Morriaty  
       Mar 7, 2024
    飞书不有技术客服吗,响应还挺及时的,干嘛这里问-_-||
    stardustree
        2
    stardustree  
    OP
       Mar 7, 2024
    @Morriaty 我们只是服务商,用机器人做了个二次开发的功能,飞书的客户不搭理我们
    perfectlife
        3
    perfectlife  
       Mar 7, 2024
    飞书 脑残的地方很多,里面有个 gitlab 连接器,不管你项目有多少个,它默认只显示 20 个项目,就很离谱
    declandragon
        4
    declandragon  
       Mar 7, 2024
    https://open.feishu.cn/tool/cardbuilder

    在上面试了你的 card 对象,确实是不支持 \t ,去掉就是正常的
    maemual
        6
    maemual  
       Mar 7, 2024
    @maemual #5 看文档本来也不支持 \t 呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   943 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 18:29 · PVG 02:29 · LAX 11:29 · JFK 14:29
    ♥ Do have faith in what you're doing.