收藏
回答

调用URL Link 返回47001错误?

请求参数:{access_token=通过appid和appsecert获取到的access_token}

请求地址:https://api.weixin.qq.com/wxa/generate_urllink

返回数据:{"errcode":47001,"errmsg":"data format error rid: 61530a95-2dab6001-420cd2d2"}

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

3 个回答

  • Mr.Zhao
    Mr.Zhao
    发表于小程序端
    2021-09-28

    token写在url后面,别写到其它地方

    2021-09-28
    有用 1
    回复 9
    • HB丶
      HB丶
      2021-09-28
      https://api.weixin.qq.com/wxa/generate_urllink?access_token=值,请问是通过这种方式吗?
      2021-09-28
      回复
    • HB丶
      HB丶
      2021-09-28回复HB丶
      通过get方式传参,返回的错误信息是:44002,empty post data rid: 61531023-5e8e0ee3-3a324bda
      2021-09-28
      回复
    • Mr.Zhao
      Mr.Zhao
      发表于小程序端
      2021-09-28回复HB丶

      用post啊

      2021-09-28
      回复
    • HB丶
      HB丶
      2021-09-28回复Mr.Zhao
      您好,请求地址:https://api.weixin.qq.com/wxa/generate_urllink?access_token=token
      请求参数:{path=/pages/welcome/welcome, is_expire=false, query=12345, expire_time=1672502399, expire_type=0, env_version=develop}

      返回数据:47001,data format error rid: 615312a6-6f27f4ca-67c0123e

      请问是哪个字段的数据传的不对吗?
      2021-09-28
      回复
    • Mr.Zhao
      Mr.Zhao
      发表于小程序端
      2021-09-28回复HB丶

      不是字段不对,是没用json传

      2021-09-28
      回复
    查看更多(4)
  • 未来
    未来
    2023-08-03
    • access_token 加在 query 参数里面,POST body 里面就不能再加 access_token 了
    • POST body 里面需要有至少一个其它的参数
    2023-08-03
    有用
    回复
  • 拾忆
    拾忆
    2021-09-28

    token在URL中,其它数据在POST请求中传。

    2021-09-28
    有用
    回复 1
    • HB丶
      HB丶
      2021-09-28
      您好,请求地址:https://api.weixin.qq.com/wxa/generate_urllink?access_token=token
      请求参数:{path=/pages/welcome/welcome, is_expire=false, query=12345, expire_time=1672502399, expire_type=0, env_version=develop}

      返回数据:47001,data format error rid: 615312a6-6f27f4ca-67c0123e

      请问是哪个字段的数据格式传的不对吗?
      2021-09-28
      回复
登录 后发表内容