错误代码:“ PP_E_RPS_CERT_NOT_FOUND”。消息:'内部错误:spRPSTicket-> ProcessToken失败

时间:2020-02-04 09:43:10

标签: php push-notification office365api outlook-restapi

我正在尝试为用户订阅推送通知。这些是包含有效访问令牌的标头。

> POST https://outlook.office.com/api/v2.0/me/subscriptions
> Authorization: Bearer *** access token ***
> Accept: application/json
> Content-Type: application/json

请求的正文为:

> {
>     "@odata.type":"#Microsoft.OutlookServices.PushSubscription",
>     "Resource":"https:\/\/outlook.office.com\/api\/v2.0\/me\/events",
>     "NotificationURL":"https:\/\/myapp.com",
>     "ChangeType":"Updated"
> }

响应始终是

< HTTP/1.1 401
< {
<     "error": {
<         "code": "InvalidMsaTicket",
<         "message": "ErrorCode: 'PP_E_RPS_CERT_NOT_FOUND'. Message: ' Internal error: spRPSTicket->ProcessToken failed. Failed to call CRPSDataCryptImpl::UnpackData: Internal error: Failed to decrypt data. :Failed to get session key. RecipientId=293577. spCache->GetCacheItem returns error.:Cert Name: (null). SKI: 3bd72187c709b1c40b994f8b496a5b9ebd2f9b0c...'",
<         "innerError": {
<             "requestId": "e99fd47a-763f-4cf4-9b12-31e62c57fbe4",
<             "date": "2020-02-04T09:30:13"
<         }
<     }
< }

似乎Outlook无法找到证书?我找不到Outlook的错误页面列表来检测这里的问题。有人可以帮助您理解此错误,并找到正确的方法来注册用户以推送通知吗?

0 个答案:

没有答案