List Sessions call using expand segments failing with java.lang.UnsupportedOperationException: text does not support structured data
Expected behavior
List Sessions call using expand segments should return list of sessions including segments
Actual behavior
List Sessions call using expand segments failing with java.lang.UnsupportedOperationException: text does not support structured data
Steps to reproduce the behavior
final SessionCollectionResponse sessions = graphClient
.communications()
.callRecords()
.byCallRecordId("e523d2ed-2966-4b6b-925b-754a88034cc5")
.sessions()
.get(requestConfiguration -> {
requestConfiguration.queryParameters.expand = new String []{"segments"};
});
@priya2395 I'm unable to reproduce this behaviour. Would you mind sharing a stacktrace?
Hi, is this issue fixed, can I get advice on this as I seem to have similar issue
I have seen the same issue when updating a calendar event in a users calendar.
Stack-trace:
java.lang.UnsupportedOperationException: text does not support structured data at deployment.mscalendarsync.war//com.microsoft.kiota.serialization.TextParseNode.getObjectValue(TextParseNode.java:125) at deployment.mscalendarsync.war//com.microsoft.kiota.http.OkHttpRequestAdapter.lambda$throwIfFailedResponse$0(OkHttpRequestAdapter.java:674) at deployment.mscalendarsync.war//com.microsoft.kiota.ApiExceptionBuilder.<init>(ApiExceptionBuilder.java:26) at deployment.mscalendarsync.war//com.microsoft.kiota.http.OkHttpRequestAdapter.throwIfFailedResponse(OkHttpRequestAdapter.java:673) at deployment.mscalendarsync.war//com.microsoft.kiota.http.OkHttpRequestAdapter.send(OkHttpRequestAdapter.java:281) at deployment.mscalendarsync.war//com.microsoft.graph.users.item.calendar.events.item.EventItemRequestBuilder.patch(EventItemRequestBuilder.java:203) at deployment.mscalendarsync.war//com.microsoft.graph.users.item.calendar.events.item.EventItemRequestBuilder.patch(EventItemRequestBuilder.java:187)