Immutable solution version
HTTPError: Valid url scheme and host required
Complete solution
On Python 3.11 the msgraph SDK built a broken base URL (something like `NationalClouds.Global/APIVersion.v1/` instead of `https://graph.microsoft.com/v1.0/`), because enum-to-string formatting used property names instead of values, exposed by a kiota-python change. Fixed in the serialization/kiota libraries; upgrade msgraph-sdk-python-core and kiota to the latest versions.
On Python 3.11 the msgraph SDK built a broken base URL (something like NationalClouds.Global/APIVersion.v1/ instead of https://graph.microsoft.com/v1.0/), because enum-to-string formatting used property names instead of values, exposed by a kiota-python change. Fixed in the serialization/kiota libraries; upgrade msgraph-sdk-python-core and kiota to the latest versions.
Source: gh:microsoftgraph/msgraph-sdk-python#1089 (Microsoft Graph)
Evidence
In gh:microsoftgraph/msgraph-sdk-python#1089, the issue was: ### Describe the bug I am experiencing an error when attempting to retrieve user information from the API. This functionality was working as expected until yesterday, but I started encountering this issue this morning. [image] ### Expected behavior Should return list of all users ### How to reproduce from msgraph import GraphServiceClient scopes = ['https://graph.microsoft.com/.default'] credential = ClientSecretCredential(TENANTID, CLIENTID, CLIENTSECRET) client = GraphServiceClient(credentials=credential, scopes=scopes) graphclient = GraphServiceClient(credentials=credential, scopes=scop. The verified answer: On Python 3.11 the msgraph SDK built a broken base URL (something like NationalClouds.Global/APIVersion.v1/ instead of https://graph.microsoft.com/v1.0/), because enum-to-string formatting used property names instead of values, exposed by a kiota-python change. Fixed in the serialization/kiota libraries; upgrade msgraph-sdk-python-core and kiota to the latest versions.. Issue URL: https://github.com/microsoftgraph/msgraph-sdk-python/issues/1089
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ZVDvMbHWOWJJbt8otSdm7A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">HTTPError: Valid url scheme and host required <span>— Vectle</span></a>