jikeshuju
jikeshuju
  • 发布:2024-08-26 17:21
  • 更新:2024-08-26 18:07
  • 阅读:252

激励广告配置回调后,uniAdCallback日志报错,没有调用回调接口

分类:uniCloud

在广告管理中,直接配置好了回调,然后自动生成的 uniAdCallback 云函数,按文档配置后,查看广告有日志,但是有报错,没有走回调接口

云函数日志如下:

[uniAdCallback/ac1cc31d1724662577157123750/769ms/ERROR] Cannot read property 'value' of undefined  
TypeError: Cannot read property 'value' of undefined  
    at CacheKey.get (/tmp/function/@common_modules/uni-open-bridge-common/uni-cloud-cache.js:236:28)  
    at processTicksAndRejections (internal/process/task_queues.js:97:5)  
    at async SessionKey.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:113: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:78208)  
    at async mp-weixin.decryptEvent (/tmp/function/index.js:1:79430)  
    at async mp-weixin.getEvent (/tmp/function/index.js:1:15882)  
    at async Me (/tmp/function/index.js:1:84863)  
[uniAdCallback/ac1cc31d1724662577157123750/769ms/ERROR] {  
  errCode: 50000,  
  errMsg: "Cannot read property 'value' of undefined",  
  code: 50000,  
  message: "Cannot read property 'value' of undefined",  
  errSubject: 'uni-secure-network',  
  cause: undefined  
}

uni appid为: UNID7A0605

2024-08-26 17:21 负责人:无 分享
已邀请:
DCloud_uni-ad_HDX

DCloud_uni-ad_HDX

这个错误是微信小程序没有正确设置SessionKey导致的,如果使用了传统服务器需要手动设置

要回复问题请先登录注册