首页 > 解决方案 > 有时我在使用 Microsoft Graph API 调用 /Users 端点时收到“Doc​​umentDB Provider is not initialized”错误

问题描述

我正在使用下面的 MS 图形端点,它工作正常,但有时会抛出以下错误。

{ "error": { "code": "InternalServerError", "message": "DocumentDB Provider is not initialized", "innerError": { "date": "2021-03-16T04:40:16", "request- id": " ", "client-request-id": " " } } }

下面是请求。

{方法:'GET',uri:'https://graph.microsoft.com/v1.0/users',qs:{'$select':'faxNumber,accountEnabled,assignedLicenses,assignedPlans,businessPhones,employeeId,city, companyName,country,department,displayName,givenName,id,jobTitle,mail,mailNickname,mobilePhone,officeLocation,onPremisesImmutableId,onPremisesLastSyncDateTime,onPremisesSecurityIdentifier,onPremisesSyncEnabled,passwordPolicies,passwordProfile,postalCode,preferredLanguage,provisionedPlans,proxyAddresses,state,streetAddress,surname,usageLocation, userPrincipalName,userType', '$expand': 'extensions', '$top': 50, '$skiptoken': "nextlink" }, headers: { 'User-Agent': 'Aquera', Authorization: 'Bearer token' ,“内容类型”:“应用程序/json”},正文:未定义,超时:40000,resolveWithFullResponse: 真 }

请帮助理解我为什么会出错。

谢谢

标签: apigraphoffice365api

解决方案


推荐阅读