1.header中contentType有没有设置为application/json; 2.Expect:100-continue设置为false
关于商品提交审核接口报错?远程服务器返回错误: (404) 未找到。 { goodsInfo = {{ coverImgUrl = sZosqYdgMcJgNRc-DTuv7iYv7yi7BonijDbKEVaJmPvgcU-vfsDCNxUWl0-fRP8T, name = 小区人脸识别设备(带刷卡功能), priceType = 1, price = 19.90, url = pages/shops/product?id=13092 }} } 请问为什么会报这种错误?
2020-05-16你好,我通过postman去试,确实可以提交成功,但是通过自己写的post提交,就会出现503,这个是我的 public static string HttpPost(string postUrl, string jsonData) { try { HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(postUrl); httpRequest.Method = "POST"; httpRequest.ContentType = "application/json" byte[] data = Encoding.UTF8.GetBytes(jsonData); httpRequest.ContentLength = data.Length; Stream requestStream = httpRequest.GetRequestStream(); requestStream.Write(data, 0, data.Length); requestStream.Close(); Stream responseStream = null; responseStream = httpRequest.GetResponse().GetResponseStream(); //到这里就直接卡住然后报503 string stringResponse = string.Empty; using (StreamReader responseReader = new StreamReader(responseStream, Encoding.GetEncoding("utf-8"))) { stringResponse = responseReader.ReadToEnd(); } responseStream.Close(); return stringResponse; } catch(Exception e) { return "" } } 我这里面是否弄错了什么,你有没有通过除了postman的其他方式去添加成功
微信直播商品库添加商品api,文档参数是不是写错了?在调用https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[access_token],价格类型选择3 [图片] 按文档上price 是现价price2是原价,price应该小于price2但是实际请求的时候,是相反的price是原价,price2是现价。按文档请求一直是price不合法。希望微信这边确认一下文档 [图片]
2020-04-28有人知道吗
api.weixin.qq.com/wxaapi/broadcast/goods/add,凭证过期?调用https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[access_token]接口时,一直返回{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hints: []"},但是可以确定这个access_token 是可用的,因为在调用这个接口之前已经先调用了https://api.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE 来获取素材(mediaID),此时的access_token是正常的,可以拿到mediaID,之后在调用api.weixin.qq.com/wxaapi/broadcast/goods/add就一直返回{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hints: []"},我也试过每次都去重新获取新的access_token,但结果还是一样
2020-04-27我也遇到这个问题,你那边是否已经解决,我已经测试了每次都去获取新的access_token,但是结果还是一样
小程序直播 添加商品接口 提交一直报invalid credential?https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token=[access_token] https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[32_EiSFc4k39ZVeqWjNEGMeJgX4Zt7DRmisyMNKGFl5N1bIcHD4b424fI8QeZw2d4Wj0GHNYlHc9ZvmXWx65Qy4lwkSOdbFPfDMgSc0LJDOFG2M50rByVf3xsmJ2G_IcuhG8Led4BcPs30-wiaBNVQgAGAHPK] 我获取的access_token 能上传素材,掉这个接口就报invalid credential, access_token is invalid or not latest hints,不清楚什么地方出现的问题
2020-04-25我没有遇到你这个问题,调用这个接口的时候,一直返回{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hints: []"},你那边是否有遇到过
直播-商品管理,商品审核失败,状态码30006一直没办法解决是什么原因?https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[access_token]
2020-04-25[access_token],你应该缺少了这个中括号[]
商品添加提审接口返回Not Find 404 错误https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html 商品添加提审接口:https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[access_token] 返回Not Find 404 错误 ( [code] => 404 [status] => Not Found [responseline] => HTTP/1.0 404 Not Found [headers] => Array ( [Connection] => close [Date] => Sun, 19 Apr 2020 07:22:30 GMT [Set-Cookie] => wxuin=87280950217235; path=/; expires=Mon, 18 Jan 2038 19:14:07 GMT [Content-Type] => text/plain; charset=utf-8 [X-Download-Options] => noopen [Strict-Transport-Security] => max-age=15552000; includeSubDomains [X-XSS-Protection] => 1; mode=block [X-Frame-Options] => SAMEORIGIN [X-DNS-Prefetch-Control] => off [Content-Length] => 9 ) [content] => Not Found [meta] => HTTP/1.0 404 Not Found Connection: close Date: Sun, 19 Apr 2020 07:22:30 GMT Set-Cookie: wxuin=87280950217235; path=/; expires=Mon, 18 Jan 2038 19:14:07 GMT Content-Type: text/plain; charset=utf-8 X-Download-Options: noopen Strict-Transport-Security: max-age=15552000; includeSubDomains X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN X-DNS-Prefetch-Control: off Content-Length: 9 Not Found )
2020-04-25[access_token],你应该缺少了这个中括号[]
接口提交后返回不了数据 也没有错误提示错误码【小程序直播】直播商品管理接口1.商品添加并提审请求方法 POST 请求URL https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[access_token]
2020-04-25