POST /security/alerts_v2/{alertId}/comments returns 400 "Empty Payload. JSON content expected." #2514
Labels
Status: No recent activity
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
Describe the bug
Calling the following code, where
alertId
is an Id known to the service, andcommentText
is "New comment", leads to anMicrosoft.Graph.Models.ODataErrors.ODataError
exception being thrown.App does have necessary
SecurityAlert.ReadWrite.All
permission for this call. Looks like an SDK issue, because no obvious reason that body would be blank. See "Other information" below for my theory on the problem.Expected behavior
Call is expected to succeed
How to reproduce
Please see above
SDK Version
5.53.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
Exception thrown: 'Microsoft.Graph.Models.ODataErrors.ODataError' in System.Private.CoreLib.dllConfiguration
Other information
I am wondering about this line at CommentsRequistBuilder.cs:134:
If I try to do this myself, I get an exception
Why even make the cast? The compiler will match just fine without it.
The text was updated successfully, but these errors were encountered: