Skip to content
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

com.microsoft.graph.models.Call serailization exception with "Dangling name: applicationInstance" #1969

Closed
devillaccc opened this issue Apr 28, 2024 · 5 comments · Fixed by microsoft/kiota-java#1327
Assignees
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

Comments

@devillaccc
Copy link

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

@Ndiritu
Copy link
Contributor

Ndiritu commented Apr 29, 2024

@devillaccc thanks for reporting this. Did this work in previous SDK versions?

@Ndiritu Ndiritu added type:bug A broken experience 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 status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Apr 29, 2024
@devillaccc
Copy link
Author

Yes, its the similar issue with 6.4.0. I followed this forum and its recommended to use latest releases. Hence I used 6.7.0 over 6.4.0

@baywet
Copy link
Member

baywet commented Apr 29, 2024

@Ndiritu could be duplicate of #1930

@devillaccc
Copy link
Author

Hi! Any pointers on this ? Any workaround possible ? Alternate approach ?

@devillaccc
Copy link
Author

What are you suggesting here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants