-
Notifications
You must be signed in to change notification settings - Fork 253
Batch Request & Azure App Service #2681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for raising this @PatrickKelley2112 Any chance you are able to share the details of the 400 response message you receive? I believe the code below should throw an error/exception if the response is 400 that could be handled as shown in the doc
|
It's not throwing an exception. I can only see what's happening by running returnedResponse.GetResponsesStatusCodesAsync(), and that only shows me that it's returning error 400 but no information about why. Is there a way to see the data that is sent using graphClient.Batch.PostAsync(batchRequestContent)? If so, I can compare that data between the local client and the Azure app service. |
I believe you can read the response content for the individual reponse as below HttpResponseMessage response = await returnedResponse.GetResponseByIdAsync("2");
var responseBodyString = await response.Content.ReadAsStringAsync(); Also, could you add a reference to https://www.nuget.org/packages/Microsoft.Graph.Core/3.1.22 as well to validate this was not resolved via microsoftgraph/msgraph-sdk-dotnet-core#916 |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I have a batch request that works flawlessly when I'm debugging on IIS Express, but as soon as I publish to an Azure App Service the batch returns error 400 for every request in the batch.
The max number of user calendars I'm requesting is around 10, but it fails even if I just add 1 to the batch. I can pull individual calendars using CalendarView.GetAsync locally or on the app service so it's definitely something with the batch request.
Expected behavior
Returns user calendar events.
How to reproduce
SDK Version
5.58
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: