Microsoft-graph-docs: unknown error

Created on 6 Jan 2020  Â·  8Comments  Â·  Source: microsoftgraph/microsoft-graph-docs

I am trying to call this api through the Microsoft.Graph.beta SDK and the Graph Explorer, it just return an unknown error


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

product TACO

All 8 comments

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/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"
    }
  }
}

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mlafleur picture mlafleur  Â·  3Comments

gi-joe-moto picture gi-joe-moto  Â·  3Comments

abhatt29 picture abhatt29  Â·  4Comments

shyamkris picture shyamkris  Â·  3Comments

findyoucef picture findyoucef  Â·  4Comments