'[uniAdCallback/ac1cc3181734075031530154299/317ms/DEBUG] WeixinServer::response {
data: {
errcode: 40164,
errmsg: "invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2"
},
status: 200,
headers: {
connection: "keep-alive",
date: "Fri, 13 Dec 2024 07:30:33 GMT",
"content-type": "application/json; encoding=utf-8",
retkey: "11",
logicret: "40164",
"content-length": "127"
},'
![3***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/d9303a07da86f10eeb90b936d53c50f0.png)
- 发布:2024-12-13 17:14
- 更新:2024-12-13 17:17
- 阅读:56
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 专业版
HBuilderX类型: 正式
HBuilderX版本号: 4.36
第三方开发者工具版本号: RC 1.06.2412031
基础库版本号: 3.6.6
项目创建方式: HBuilderX
示例代码:
操作步骤:
请求入参: {
"args": {
"content": "Ut1r0SwpM0y/McexcKPqcLdKZ2ROZJEEoL0o84QtDTtDYGNB9Muqg6BSjZA7x4wAj5SDyWOX5xqLTe2PmJfU4nczV21dE/gjNOQdmoP9WG/cWjycu0YO8Vy0unHybMsXAc6PPbueP7O6LAStliQZL5Y39Ydfu26ViEIHkCs3J0zzlmfN6gfMCwfM0IdAxAcSlLod+ikaEIHVknyxWEBcYmrsoZSgh8SBR/1F7fJohAZgrXLR/oZdUMzCSTKCOvsP/YIndiU3lQrffx7Qpkysm0UtcgOx4w11NSIuxRraZxJS0QCIcZL/QO7MS0ABuwPenCL9H2tO/QD2RyovzIwlEJyyGo1yGDODkMrAzo7hzIm0xkyssr7bN1fQwgxErA9mCnDgbOs7+oIovPiWjeIKcoJrajPSJMX4NI+X6exYz14=",
"_uniCloudOptions": {
"secretType": "both",
"encryptKeyId": 13,
"mpWeixinOpenid": "omJzs66MJYg2tikSgWmZi5YZcqAc"
},
"clientInfo": {
"PLATFORM": "mp-weixin",
"OS": "ios",
"APPID": "UNIBD509E7",
"DEVICEID": "17339034238575659912",
"scene": 1001,
"deviceId": "17339034238575659912",
"appId": "UNIBD509E7",
"appName": "扫立富",
"appVersion": "1.0.0",
"appVersionCode": "100",
"appLanguage": "zh-Hans",
"uniCompilerVersion": "4.36",
"uniRuntimeVersion": "4.36",
"uniPlatform": "mp-weixin",
"deviceBrand": "devtools",
"deviceModel": "iPhone 12/13 (Pro)",
"deviceType": "phone",
"osName": "ios",
"osVersion": "10.0.1",
"hostVersion": "8.0.5",
"hostName": "WeChat",
"locale": "zh-Hans",
"LOCALE": "zh-Hans"
}
},
"requestId": "ac1cc3181734075031530154299"
}
[uniAdCallback/ac1cc3181734075031530154299/317ms/DEBUG] WeixinServer::response {
data: {
errcode: 40164,
errmsg: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2'
},
status: 200,
headers: {
connection: 'keep-alive',
date: 'Fri, 13 Dec 2024 07:30:33 GMT',
'content-type': 'application/json; encoding=utf-8',
retkey: '11',
logicret: '40164',
'content-length': '127'
},
res: {
status: 200,
statusCode: 200,
statusMessage: 'OK',
headers: {
connection: 'keep-alive',
date: 'Fri, 13 Dec 2024 07:30:33 GMT',
'content-type': 'application/json; encoding=utf-8',
retkey: '11',
logicret: '40164',
'content-length': '127'
},
size: 127,
aborted: false,
rt: 212,
keepAliveSocket: false,
data: {
errcode: 40164,
errmsg: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2'
},
requestUrls: [ 'https://api.weixin.qq.com/cgi-bin/stable_token' ],
timing: null,
remoteAddress: '101.91.37.13',
remotePort: 443,
socketHandledRequests: 1,
socketHandledResponses: 1
}
}
[uniAdCallback/ac1cc3181734075031530154299/319ms/ERROR] invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2
Error: invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2
at Function.WeixinServer.GetResponseData (/tmp/function/@common_modules/uni-open-bridge-common/weixin-server.js:151:11)
at Function.WeixinServer.GetMPAccessTokenData (/tmp/function/@common_modules/uni-open-bridge-common/weixin-server.js:159:23)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async AccessToken.getByWeixinServer (/tmp/function/@common_modules/uni-open-bridge-common/index.js:56:26)
at async CacheKey.get (/tmp/function/@common_modules/uni-open-bridge-common/uni-cloud-cache.js:235:28)
at async AccessToken.get (/tmp/function/@common_modules/uni-open-bridge-common/storage.js:24:20)
at async Encryptkey.getByWeixinServer (/tmp/function/@common_modules/uni-open-bridge-common/index.js:112:25)
at async CacheKey.get (/tmp/function/@common_modules/uni-open-bridge-common/uni-cloud-cache.js:235:28)
at async Encryptkey.get (/tmp/function/@common_modules/uni-open-bridge-common/storage.js:24:20)
at async mp-weixin.getEncryptKey (/tmp/function/index.js:1:78275)
[uniAdCallback/ac1cc3181734075031530154299/320ms/ERROR] {
errCode: 40164,
errMsg: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2',
code: 40164,
message: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2',
errSubject: 'uni-secure-network',
cause: undefined
}
请求响应状态: success
请求入参: {
"args": {
"content": "Ut1r0SwpM0y/McexcKPqcLdKZ2ROZJEEoL0o84QtDTtDYGNB9Muqg6BSjZA7x4wAj5SDyWOX5xqLTe2PmJfU4nczV21dE/gjNOQdmoP9WG/cWjycu0YO8Vy0unHybMsXAc6PPbueP7O6LAStliQZL5Y39Ydfu26ViEIHkCs3J0zzlmfN6gfMCwfM0IdAxAcSlLod+ikaEIHVknyxWEBcYmrsoZSgh8SBR/1F7fJohAZgrXLR/oZdUMzCSTKCOvsP/YIndiU3lQrffx7Qpkysm0UtcgOx4w11NSIuxRraZxJS0QCIcZL/QO7MS0ABuwPenCL9H2tO/QD2RyovzIwlEJyyGo1yGDODkMrAzo7hzIm0xkyssr7bN1fQwgxErA9mCnDgbOs7+oIovPiWjeIKcoJrajPSJMX4NI+X6exYz14=",
"_uniCloudOptions": {
"secretType": "both",
"encryptKeyId": 13,
"mpWeixinOpenid": "omJzs66MJYg2tikSgWmZi5YZcqAc"
},
"clientInfo": {
"PLATFORM": "mp-weixin",
"OS": "ios",
"APPID": "UNIBD509E7",
"DEVICEID": "17339034238575659912",
"scene": 1001,
"deviceId": "17339034238575659912",
"appId": "UNIBD509E7",
"appName": "扫立富",
"appVersion": "1.0.0",
"appVersionCode": "100",
"appLanguage": "zh-Hans",
"uniCompilerVersion": "4.36",
"uniRuntimeVersion": "4.36",
"uniPlatform": "mp-weixin",
"deviceBrand": "devtools",
"deviceModel": "iPhone 12/13 (Pro)",
"deviceType": "phone",
"osName": "ios",
"osVersion": "10.0.1",
"hostVersion": "8.0.5",
"hostName": "WeChat",
"locale": "zh-Hans",
"LOCALE": "zh-Hans"
}
},
"requestId": "ac1cc3181734075031530154299"
}
[uniAdCallback/ac1cc3181734075031530154299/317ms/DEBUG] WeixinServer::response {
data: {
errcode: 40164,
errmsg: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2'
},
status: 200,
headers: {
connection: 'keep-alive',
date: 'Fri, 13 Dec 2024 07:30:33 GMT',
'content-type': 'application/json; encoding=utf-8',
retkey: '11',
logicret: '40164',
'content-length': '127'
},
res: {
status: 200,
statusCode: 200,
statusMessage: 'OK',
headers: {
connection: 'keep-alive',
date: 'Fri, 13 Dec 2024 07:30:33 GMT',
'content-type': 'application/json; encoding=utf-8',
retkey: '11',
logicret: '40164',
'content-length': '127'
},
size: 127,
aborted: false,
rt: 212,
keepAliveSocket: false,
data: {
errcode: 40164,
errmsg: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2'
},
requestUrls: [ 'https://api.weixin.qq.com/cgi-bin/stable_token' ],
timing: null,
remoteAddress: '101.91.37.13',
remotePort: 443,
socketHandledRequests: 1,
socketHandledResponses: 1
}
}
[uniAdCallback/ac1cc3181734075031530154299/319ms/ERROR] invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2
Error: invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2
at Function.WeixinServer.GetResponseData (/tmp/function/@common_modules/uni-open-bridge-common/weixin-server.js:151:11)
at Function.WeixinServer.GetMPAccessTokenData (/tmp/function/@common_modules/uni-open-bridge-common/weixin-server.js:159:23)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async AccessToken.getByWeixinServer (/tmp/function/@common_modules/uni-open-bridge-common/index.js:56:26)
at async CacheKey.get (/tmp/function/@common_modules/uni-open-bridge-common/uni-cloud-cache.js:235:28)
at async AccessToken.get (/tmp/function/@common_modules/uni-open-bridge-common/storage.js:24:20)
at async Encryptkey.getByWeixinServer (/tmp/function/@common_modules/uni-open-bridge-common/index.js:112:25)
at async CacheKey.get (/tmp/function/@common_modules/uni-open-bridge-common/uni-cloud-cache.js:235:28)
at async Encryptkey.get (/tmp/function/@common_modules/uni-open-bridge-common/storage.js:24:20)
at async mp-weixin.getEncryptKey (/tmp/function/index.js:1:78275)
[uniAdCallback/ac1cc3181734075031530154299/320ms/ERROR] {
errCode: 40164,
errMsg: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2',
code: 40164,
message: 'invalid ip 47.92.75.210 ipv6 ::ffff:47.92.75.210, not in whitelist rid: 675be299-0a86a0be-5e1862d2',
errSubject: 'uni-secure-network',
cause: undefined
}
请求响应状态: success
预期结果:
获取固定ip后激励视频能正常回调
获取固定ip后激励视频能正常回调
实际结果:
无法通过回调
无法通过回调
bug描述:
由于使用了阿里云的免费服务,导致微信小程序在观看激励视频的时候回调无法实现报错如下
这个是uniAdCallback 函数运行日志的反馈,请问一下接下来这个需要具体怎么操作呢。
文档需要 uniCloud.httpProxyForEip发送请求才会固定出口ip,但是这个是服务器回调的,应该怎么修改呢,如果不行 升级服务器是否能使用固定ip呢, 如果更换其他厂商服务器可以解决的话,但是激励视频无法更换服务器,这个该怎么操作呢
![3***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/d9303a07da86f10eeb90b936d53c50f0.png)
3***@qq.com (作者)
3***@qq.com (作者)
但是 更换腾讯云 的 小程序激励广告是无法添加的,而且 空间选择这里无法修改,请问怎么处理呢
2024-12-13 17:18