You need to confirm if you have all the required permissions. You can check it in jwt.io.
Check if your notification url is valid - check this for more details.
Error while subscribing to callRecords with graphAPI
I'm trying to subscribe to callRecords. TO make it simple I'm using postman acording to:
https://learn.microsoft.com/en-us/graph/use-postman
I've created new Azure account, new application and granted permissions:
I can read all subscriptions without a problem, with response with empty array which is fine.
But when im doing subcripition create i got error. Below is my payload and response:
POST to https://graph.microsoft.com/v1.0/subscriptions
{
"changeType": "created",
"notificationUrl": "https://xxxxxxx.ngrok.io/webhooks/microsoft/call_record",
"resource": "/communications/callRecords",
"expirationDateTime": "2020-11-12T18:23:45.9356913Z",
"clientState": "secretClientState"
}
Response:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Expected 1 response for tenant lookup for tenant id 573f65c7-4318-4446-8558-4473832c5e57 but received 0]",
"innerError": {
"date": "2020-11-12T16:35:51",
"request-id": "31ddb9f6-7177-46f5-9640-2a38818db030",
"client-request-id": "31ddb9f6-7177-46f5-9640-2a38818db030"
}
}
}
Not sure why tenant lookup is failing if i can get bearer token with it.
Am I missing some additional config on my Azzure account for this?
2 answers
Sort by: Most helpful
-
-
Christian Hiller 1 Reputation point
2022-10-13T16:43:19.027+00:00 i have the same issue like @Bartek Wojcieszek
is there any solution for this?
thx.