msgraph-sdk-java icon indicating copy to clipboard operation
msgraph-sdk-java copied to clipboard

List Sessions call using expand segments failing with java.lang.UnsupportedOperationException: text does not support structured data

Open priya2395 opened this issue 2 years ago • 2 comments

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 avatar Feb 14 '24 17:02 priya2395

@priya2395 I'm unable to reproduce this behaviour. Would you mind sharing a stacktrace?

Ndiritu avatar Mar 05 '24 19:03 Ndiritu

Hi, is this issue fixed, can I get advice on this as I seem to have similar issue

sudhamadhuri avatar Apr 17 '24 13:04 sudhamadhuri

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)

stherkildsen avatar Aug 21 '24 09:08 stherkildsen