search.siteSearch返回报错?
appId: wxf82ff22ff1762af7 服务端调用小程序的 接口search.siteSearch,返回{"errcode":47001,"errmsg":"data format error rid: 612ee839-594bf56e-17edfd57"} nodejs请求参数的格式如下。 字段有什么格式错误呢? const resp = await rp.post({
url: `${WECHAT_HOST}/wxa/sitesearch?access_token=${accessToken}`,
body: {
access_token: accessToken,
keyword: keyword,
next_page_info:'',
},
json: true,
});
2.请求参数 去掉 access_token 显示,也报错
const resp = await rp.post({
url: `${WECHAT_HOST}/wxa/sitesearch?access_token=${accessToken}`,
body: {
keyword: keyword,
next_page_info:'',
},
json: true,
});
错误信息 {"errcode":-2,"errmsg":" rid: 612f4ad2-2d322dbd-694dc398"}