我正在GET
拨打电话:
https://outlook.office365.com/ews/odata/Me/Contacts?$orderby=DisplayName
不幸的是,每15次调用中就有一次失败,但有以下异常。
任何想法有什么不对?
"{\"error\":{\"code\":\"ErrorInvalidPropertyRequest\",\"message\":\"Property is not valid for this object type.\",\"innererror\":{\"message\":\"\\\"Exchange service returned error ErrorInvalidPropertyRequest: Property is not valid for this object type.\\\".\",\"type\":\"Microsoft.Exchange.Services.ExchangeService.ExchangeServiceErrorResponseException\",\"stacktrace\":\" at Microsoft.Exchange.Services.ExchangeService.ExchangeServiceHelper.CheckResponse(IExchangeWebMethodResponse response, ExecutionOption option)\\r\\n at Microsoft.Exchange.Services.ExchangeService.ExchangeServiceBase.InvokeServiceCommand[TResponse](Func`1 commandCreator, ExecutionOption executionOption)\\r\\n at Microsoft.Exchange.Services.OData.Model.ContactProvider.InternalRead(String ewsId, ContactQueryAdapter queryAdapter)\\r\\n at Microsoft.Exchange.Services.OData.Model.ContactProvider.Find(String parentFolderId, ContactQueryAdapter queryAdapter)\\r\\n at Microsoft.Exchange.Services.OData.Model.FindContactsCommand.InternalExecute()\\r\\n at Microsoft.Exchange.Services.OData.ODataCommand`2.Execute()\\r\\n at Microsoft.Exchange.Services.OData.ODataTask.Execute(TimeSpan queueAndDelayTime, TimeSpan totalTime)\"}}}"