Unable to find target address error while using Microsoft Graph API

Fivetran Developers 1 Reputation point
2022-06-16T06:07:09.687+00:00

The below API call to /groups endpoint always returns HTTP 500 Internal server error with the following response:

{
"error": {
"code": "InternalServerError",
"message": "Unable to find target address",
"innerError": {
"date": "2022-06-16T05:59:59",
"request-id": "ce75ed30-1103-4aad-85d1-52b88922b013",
"client-request-id": "ce75ed30-1103-4aad-85d1-52b88922b013"
}
}
}

curl --location --request GET 'https://graph.microsoft.com/v1.0/groups' \
--header 'Authorization: Bearer <redacted>'

I have added the required scope for this endpoint: Group.Read.All
(as mentioned here - https://learn.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0&tabs=http)

Tried this API call multiple times, but same error response is being returned.

Getting the same error for other endpoints also like:
https://graph.microsoft.com/v1.0/me/joinedTeams

Please help resolve this issue.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 46,366 Reputation points
    2022-06-16T07:03:00.993+00:00

    Hi @Fivetran Developers

    This endpoint does not yet support personal accounts, please switch to a work/school account to log in.

    211973-image.png


    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 people found this answer helpful.

  2. Sunil Saini 0 Reputation points
    2024-06-13T17:09:08.7233333+00:00

    also having the same issue. is there any alternate of this command?

    can we get this information manually?

    0 comments No comments

  3. Mario Flórez 0 Reputation points
    2024-08-06T16:21:49.7766667+00:00

    You must use Sign-in options and put your organization domain for sign-in as an work account.

    Sin título


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.