com.microsoft.graph.models.Call serailization exception with "Dangling name: applicationInstance" #1969
Labels
area:serialization
Focused on functional modules of the product
priority:p1
High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7days
type:bug
A broken experience
Expected behavior
Serialization of Call object to initiate a PSTN call using Bot
https://learn.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=java#example-9-create-peer-to-peer-pstn-call-with-service-hosted-media
graph: v6.7.0
microsoft-graph-core: 3.1.9
bot schema & connector: 4.14.3
Actual behavior
Failed to invoke the call request
graphClient.communications().calls().post(call);
java.lang.IllegalStateException: Dangling name: applicationInstance
at com.google.gson.stream.JsonWriter.close(JsonWriter.java:346) ~[gson-2.10.1.jar!/:?]
at com.google.gson.stream.JsonWriter.endObject(JsonWriter.java:321) ~[gson-2.10.1.jar!/:?]
at com.microsoft.kiota.serialization.JsonSerializationWriter.writeObjectValue(JsonSerializationWriter.java:316) ~[microsoft-kiota-serialization-json-1.1.7.jar!/:?]
at com.microsoft.graph.models.ParticipantInfo.serialize(ParticipantInfo.java:138) ~[microsoft-graph-6.7.0.jar!/:?]
at com.microsoft.kiota.serialization.JsonSerializationWriter.writeObjectValue(JsonSerializationWriter.java:301) ~[microsoft-kiota-serialization-json-1.1.7.jar!/:?]
at com.microsoft.graph.models.Call.serialize(Call.java:276) ~[microsoft-graph-6.7.0.jar!/:?]
at com.microsoft.kiota.serialization.JsonSerializationWriter.writeObjectValue(JsonSerializationWriter.java:301) ~[microsoft-kiota-serialization-json-1.1.7.jar!/:?]
at com.microsoft.kiota.RequestInformation.setContentFromParsable(RequestInformation.java:358) ~[microsoft-kiota-abstractions-1.1.7.jar!/:?]
at com.microsoft.graph.communications.calls.CallsRequestBuilder.toPostRequestInformation(CallsRequestBuilder.java:159) ~[microsoft-graph-6.7.0.jar!/:?]
at com.microsoft.graph.communications.calls.CallsRequestBuilder.post(CallsRequestBuilder.java:113) ~[microsoft-graph-6.7.0.jar!/:?]
at com.microsoft.graph.communications.calls.CallsRequestBuilder.post(CallsRequestBuilder.java:101) ~[microsoft-graph-6.7.0.jar!/:?]
Steps to reproduce the behavior
Try the sample code as explained in below link
https://learn.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=java#example-9-create-peer-to-peer-pstn-call-with-service-hosted-media
The text was updated successfully, but these errors were encountered: