Bad Request (More Details)

Steve 4848 11 Reputation points
2022-05-10T16:53:03.633+00:00

I have an integration built with the microsoft graph API. In our internal testing, it appears to work fine but with some user accounts, we are seeing 400 responses with the body being the following:

{
reason: Bad Request
}

Is there any way to retrieve the reason for the 400 error so as to help diagnose the issue? Since it works on our test account, we can't determine why there is an error without more fine-grained error responses.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,569 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,831 Reputation points
    2022-05-11T02:11:59.887+00:00

    Hello @Steve 4848 , firstly, you can refer to the documentation on error messages to diagnose the problem. In addition to that, you can describe your needs and the API you are using, and we can help you analyze the cause of the error. Or you can also open a support ticket and a backend engineer can give you more details. Hope this helps you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Steve 4848 11 Reputation points
    2022-05-13T18:40:57.403+00:00

    Also, how do I submit a ticket? This page does not show any way to submit a ticket: https://developer.microsoft.com/en-us/graph/support