Status Code: BadGateway Microsoft.Graph.ServiceException: Code: UnknownError Message: Bad Gateway Inner error

Mohammed Akter 96 Reputation points
2020-09-09T15:06:40.96+00:00

Hi I am receiving this error after calling the API from Microsoft Graph REST API v1.0 .The error details and API details are in the following.

Error: BadGateway Microsoft.Graph.ServiceException: Code: UnknownError Message: Bad Gateway Inner error:"

API: GET /teams/{teamId}/schedule/shifts
HTTP: GET https://graph.microsoft.com/v1.0/teams/{teamId}/schedule/shifts

It was working before but I have started getting this error recently.
Please email me with the solution <Email Redacted>

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,068 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Mohammed Akter 96 Reputation points
    2020-09-10T09:31:16.097+00:00

    Hi Sharma, You can see the API URI on my post was to get the list of shift instances in a schedule.It is not for creating a shift.Also let you know we are using the organizational account.It does not give the response payload for the second page request as one page gives 100 shift instances at a time for a particular team .We are able get to response payloads for other teams.

    API details: GET /teams/{teamId}/schedule/shifts

    you can find out this API by clicking on the below link
    https://video2.skills-academy.com/en-us/graph/api/schedule-list-shifts?view=graph-rest-1.0&tabs=http


  2. Mohammed Akter 96 Reputation points
    2020-09-11T13:38:34.383+00:00

    Hi Sharma, Only failing for the second page request for a particular team id.When we are passing other team ids in the URI,there are no problems at all for the second page requests.We used to get the response payloads for that particular team id and it got now more than 6000 shift instances.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.