2***@qq.com
2***@qq.com
  • 发布:2023-12-06 15:06
  • 更新:2024-04-24 16:09
  • 阅读:196

{"errCode":"uni-id-illegal-request","errMsg":"Illegal request"}

分类:uniCloud

云函数日志

请求入参: {
"args": {
"path": "/externalLogin",
"httpMethod": "POST",
"headers": {
"content-length": "155",
"x5-uuid": "04d435973a55e07a8b400152fa713f49",
"uni-id-signature": "ABE66EE36BE10E85BF46D641B3742EE16575B152E3B27F760B967793F36D1858",
"x-client-ip": "183.191.102.123",
"uni-id-nonce": "Kuk3ZB20wvTbg8AkcI",
"x-forwarded-for": "183.191.102.123, 47.111.193.87, 39.96.119.217",
"x-real-ip": "183.191.102.123",
"uni-id-timestamp": "1701845678",
"traceparent": "00-135c577dfa97d46f1246bc4c9b943282-0712a31d43b44879-00",
"x-sinfo": "on",
"host": "实际地址",
"content-type": "application/json",
"x-forwarded-by": "172.28.194.248:80",
"cache-control": "no-cache",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.1293.47"
},
"queryStringParameters": {},
"isBase64Encoded": false,
"body": "{\"clientInfo\":{\"uniPlatform\":\"app\",\"appId\":\"实际id\",\"deviceId\":\"6346s5ad4f65asd4f65dsa4f\"},\"uniIdToken\":\"\",\"params\":{\"externalUid\":\"132423144123\"}}"
},
"requestId": "ac1cc2f81701845679930144803"
}
[uni-id-co/ac1cc2f81701845679930144803/104ms/ERROR] [timestamp error], timestamp: 1701845678 timeout: 20000
请求响应状态: success

我确实对params内的参数进行签名了,而且签名密钥的配置文件也上传了

2023-12-06 15:06 负责人:无 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

timestamp 是毫秒,不是秒。

p***@126.com

p***@126.com

请问最后解决了吗,也碰到一样的问题

要回复问题请先登录注册