收藏
回答

怎么避免调用小程序API获取scheme经常连接超时的问题呢?

经常调用微信小程序API获取scheme有超时的情况,如下是其中一笔,辛苦排查下~

小程序API接口:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-scheme/generateScheme.html

请求微信时间:2023-09-13 15:10:50

请求报文:

{"charSet":"utf-8","headers":{"Content-Type":"application/json"},

"hostnameVerify":false,"method":"POST","readTimeout":20000,"connectTimeout":10000,"ignoreContentIfUnsuccess":true,"maxResultSize":5000,

"postData":"{\"jump_wxa\":{\"path\":\"/pages/fromH5Pay/index\",\"query\":\"orderAmount=79&state=01d55789-25db-47bd-af34-343f9dfa8aa2&goodsName=%E5%84%BF%E7%AB%A5%E7%94%B5%E8%AF%9D%E5%AE%9A%E4%BD%8D%E6%89%8B%E8%A1%A8&customerNo=10089455846&customerRequestNo=2454473181732866-1-790066038\"}}",

"parameters":{},"sslVerify":false,

"url":"https://api.weixin.qq.com/wxa/generatescheme?access_token=72_vniCHTrwiu0JVJIk9PGeqTNA3LdKyTLZ0hj2MC5SJLaa7MsF5XOTUzOOLJ7Lk8p4McLwiM2FnTdqFbfHBEtu1G5wRhHk1WooOOuoXjEYih6V9Mej-_mbdFRlOZ4CDNaADAJKU"}

请求报错:connect timed out

请求IP:101.91.37.13/101.91.34.103/101.89.47.18

微信IP:59.151.25.88/59.151.25.89/59.151.25.90

回答关注问题邀请回答
收藏
登录 后发表内容