'Microsoft Graph API Invalid URI: The hostname could not be parsed. when using /search/query

I'm trying to search calendars by name with the v1.0/search/query endpoint from the Graph API. However even I'm trying the examples from the Explorer I get the following error:

{
    "error": {
        "code": "InternalServerError",
        "message": "Invalid URI: The hostname could not be parsed.",
        "innerError": {
            "date": "2022-03-28T19:50:56",
            "request-id": "ddb02afc-1c82-4884-d352-4a8d80809b20",
            "client-request-id": "58147981-de34-ba11-ab1f-6e17dca603f9"
        }
    }
}

Graph Explorer: enter image description here

Is this endpoint still supported? Is it not allowed for Applications?



Solution 1:[1]

From the output we can see that , in the tip its saying for adding the permissions for accessing Calendar events and its API's. enter image description here

so please try to add those permissions and retry again. Please refer this DOC

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mehtab Siddique