tking2015
tking2015
  • 发布:2024-03-21 15:47
  • 更新:2024-03-25 11:24
  • 阅读:54

急急急 使用uni-id 三方登录请求时候,始终返回uni-id-illegal-request

分类:uniCloud

使用java示例里的加密方法,请求检查了很久都没有问题,config文件上传了很多次了。
这个是日志里的内容,有官方的兄弟能帮忙看一下么。是签名还不正确么?尝试了太多次了

请求入参: {
"args": {
"path": "/externalRegister",
"httpMethod": "POST",
"headers": {
"content-length": "130",
"postman-token": "3645e08f-6635-4d2a-a408-d9aafc153673",
"x5-uuid": "b59296df7c00a8f2c0743578636122bd",
"uni-id-signature": "8E20C190424B2063AABD9F8B7ABE5ADEEA92713E7F338590939DF447420267FB",
"uni-id-nonce": "444444",
"x-client-ip": "39.170.57.17",
"host": "fc-mp-f56a3062-3848-4c7a-a38e-7c3eada0ca26.next.bspapp.com",
"content-type": "application/json",
"cookie": "acw_tc=ac11000117110046651102057ede28cf0398a3d330987c41b64ee8541030fe; aliyungf_tc=8758575dd6a1b7edab88c1fcffb4f04ced8dd7d31fcda87992a7cf4957165757",
"x-forwarded-for": "39.170.57.17, 120.27.173.119, 39.96.130.164",
"accept": "/",
"x-real-ip": "39.170.57.17",
"uni-id-timestamp": "1711005571007",
"x-sinfo": "on",
"x-forwarded-by": "172.28.195.5:80",
"accept-encoding": "gzip, deflate, br",
"user-agent": "PostmanRuntime/7.37.0"
},
"queryStringParameters": {},
"isBase64Encoded": false,
"body": "{\"clientInfo\": {\"uniPlatform\": \"app\",\"appId\": \"UNIB4A3D2F\",\"deviceId\": \"17101423095521893367\"},\"params\": {\"externalUid\": \"1\"}}"
},
"requestId": "ac1cc3051711005695799138235"
}
[uni-id-co/ac1cc3051711005695799138235/17ms/ERROR] [timestamp error], timestamp: 1711005571007 timeout: 20000
请求响应状态: success

2024-03-21 15:47 负责人:无 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

因为有时间戳校验,你发起请求的服务器时间与云函数环境中的时间相差大于20秒,检查下你服务器时间。

要回复问题请先登录注册