I am trying to call this api through the Microsoft.Graph.beta SDK and the Graph Explorer, it just return an unknown error
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
I have same problem.
Trying with application token and Group.Read.All, User.Read.All scopes
Examples of answers:
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"003","RoleInstance":"AGSFE_IN_78"}}
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "de2ff21a-15da-4a96-af8b-5a2d29555e73",
"date": "2020-04-06T09:25:46"
}
}
}
Code: UnknownError
Inner error:
AdditionalData:
request-id: 5d02570b-7388-498a-905f-c300bb7b8b7b
date: 2020-04-06T08:52:49
UPD. I found possible cause of error. https://docs.microsoft.com/en-us/graph/teams-protected-apis
Same error here, using Application permission type with Group.Read.All permissions. Can get hold of the channel just fine using https://graph.microsoft.com/beta/teams/TEAMID/channels but subsequently fetching messages of that channel fails https://graph.microsoft.com/beta/teams/TEAMID/channels/CHANNELID/messages.
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "d3c5a0a8-011f-40d8-8b69-1b9a26abe541",
"date": "2020-05-05T13:23:59"
}
}
}
Same error here, using Application permission type with Group.Read.All permissions. Can get hold of the channel just fine using
https://graph.microsoft.com/beta/teams/TEAMID/channelsbut subsequently fetching messages of that channel failshttps://graph.microsoft.com/beta/teams/TEAMID/channels/CHANNELID/messages.{ "error": { "code": "UnknownError", "message": "", "innerError": { "request-id": "d3c5a0a8-011f-40d8-8b69-1b9a26abe541", "date": "2020-05-05T13:23:59" } } }
Did you get permission to protected graph api?
https://docs.microsoft.com/en-us/graph/teams-protected-apis
No, that must be it. Thank you @Ngoroth!
I entered and submitted the form. Still I don't see the messages coming thru. Application Access. I still run in to errors
request:https://graph.microsoft.com/beta/teams/0cefd2e5....../channels/19:417......[email protected]/messages?$top=99,
response:{'error': {'code': 'UnknownError', 'message': '', 'innerError': {'request-id': '67d25bc2-......87780e', 'date': '2020-05-07T20:13:03'}}}
I entered and submitted the form. Still I don't see the messages coming thru. Application Access. I still run in to errors
request:https://graph.microsoft.com/beta/teams/0cefd2e5....../channels/19:417......[email protected]/messages?$top=99,
response:{'error': {'code': 'UnknownError', 'message': '', 'innerError': {'request-id': '67d25bc2-......87780e', 'date': '2020-05-07T20:13:03'}}}
You should wait for approval your permission request. In my case it takes about 4 weeks.
Yes, it does work. They didn't send any email telling when it was set, though. I waited few weeks, then sent mail to the address mentioned top of the dorm, and they promptly responded permission was approved and granted.
closing this issue as this is related to using protected API. Please see https://docs.microsoft.com/en-us/graph/teams-protected-apis for using protected APIs.