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

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

Closed
priya2395 opened this issue Feb 14, 2024 · 7 comments
Assignees
Labels
area:serialization Focused on functional modules of the product no-recent-activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience

Comments

@priya2395
Copy link

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"};
            });
@Ndiritu
Copy link
Contributor

Ndiritu commented Mar 5, 2024

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

@sudhamadhuri
Copy link

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

@stherkildsen
Copy link

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)

@Ndiritu Ndiritu reopened this Sep 3, 2024
@Ndiritu
Copy link
Contributor

Ndiritu commented Sep 3, 2024

Thanks for reporting this @stherkildsen.

This seems like an issue during deserialization of some error payloads.

Would you mind sharing the response status code, headers & the body (please redact sensitive information) ?

@Ndiritu Ndiritu added type:bug A broken experience area:serialization Focused on functional modules of the product status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed bug under-investigation labels Sep 3, 2024
@stherkildsen
Copy link

stherkildsen commented Sep 5, 2024 via email

@Ndiritu Ndiritu removed the status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close label Sep 9, 2024
@Ndiritu
Copy link
Contributor

Ndiritu commented Sep 9, 2024

Hi @stherkildsen
You can enable OpenTelemetry using the snippet or use OkHttp's logging interceptor:

HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(System.out::println);
loggingInterceptor.level(HttpLoggingInterceptor.Level.BODY);
OkHttpClient.Builder builder = GraphClientFactory.create();
builder.addInterceptor(loggingInterceptor);
OkHttpClient okHttpClient = builder.build();
GraphServiceClient client = new GraphServiceClient(authProvider, okHttpClient);

@Ndiritu Ndiritu added the status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close label Sep 19, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

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 no-recent-activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

5 participants