收藏
回答

服务号创建菜单一直报错40016?

{

    "button": [

        {

            "name": "A",

            "sub_button": [

                {

                    "name": "A101",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "101"

                },

                {

                    "name": "A102",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "102"

                }

            ],

            "type": ""

        },

        {

            "name": "B",

            "sub_button": [

                {

                    "name": "B101",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "201"

                },

                {

                    "name": "B102",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "202"

                }

            ],

            "type": ""

        },

        {

            "name": "C",

            "sub_button": [

                {

                    "name": "C1",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "http://xxx.xxx.xxx"

                },

                {

                    "name": "C2",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "https://xxx.xxx.xxx"

                },

                {

                    "name": "C3",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "http://xxx.xxx.xxx"

                },

                {

                    "name": "C4",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "http://xxx.xxx.xxx/"

                }

            ],

            "type": ""

        }

    ]

}


运行代码,返回结果如上(其中url地址在代码中可以实际访问),结果就报错{"errcode":40016,"errmsg":"invalid button size hint: [mYuFNa06481892]"},查了官方文档,40016:不合法的按钮个数,但是我吧上班的json数据复制到微信公众平台接口调试工具,直接在线创建菜单,就能正常创建,如下图,求解?

回答关注问题邀请回答
收藏

1 个回答

  • ······
    ······
    2020-03-16

    找到问题,已解决

    2020-03-16
    有用
    回复 4
    • 橘子
      橘子
      2020-04-22
      你是怎么解决的
      2020-04-22
      回复
    • Dae🇨🇳
      Dae🇨🇳
      2022-06-22
      大佬能说下怎么解决的吗
      2022-06-22
      回复
    • Aimon
      Aimon
      2022-10-18
      大佬,请问你是怎么解决的
      2022-10-18
      回复
    • TuDou
      TuDou
      04-11
      傻狗 草拟吗
      04-11
      回复
登录 后发表内容
问题标签