microsoftgraph / msgraph-beta-sdk-java

Microsoft Graph Beta Java SDK
https://docs.microsoft.com/en-us/graph/sdks/use-beta?tabs=Java
MIT License
25 stars 9 forks source link

java.time.format.DateTimeParseException #874

Closed PRINSIGHT closed 8 months ago

PRINSIGHT commented 8 months ago

I upgraded to the beta version as I need to use some of its functionality and have been getting an exception when I try to retrieve a transcript for an existing meeting. Note: The time that is throwing the error in the API is current time as opposed to any time associated with the meeting.

This is the StackTrace:

Exception in thread "main" java.time.format.DateTimeParseException: Text '2024-02-14T18:34:40' could not be parsed at index 19 at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2046) at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1948) at java.base/java.time.OffsetDateTime.parse(OffsetDateTime.java:402) at java.base/java.time.OffsetDateTime.parse(OffsetDateTime.java:387) at com.microsoft.kiota.serialization.JsonParseNode.getOffsetDateTimeValue(JsonParseNode.java:98) at com.microsoft.graph.beta.models.odataerrors.InnerError.lambda$getFieldDeserializers$1(InnerError.java:83) at com.microsoft.kiota.serialization.JsonParseNode.assignFieldValues(JsonParseNode.java:247) at com.microsoft.kiota.serialization.JsonParseNode.getObjectValue(JsonParseNode.java:198) at com.microsoft.graph.beta.models.odataerrors.MainError.lambda$getFieldDeserializers$2(MainError.java:83) at com.microsoft.kiota.serialization.JsonParseNode.assignFieldValues(JsonParseNode.java:247) at com.microsoft.kiota.serialization.JsonParseNode.getObjectValue(JsonParseNode.java:198) at com.microsoft.graph.beta.models.odataerrors.ODataError.lambda$getFieldDeserializers$0(ODataError.java:74) at com.microsoft.kiota.serialization.JsonParseNode.assignFieldValues(JsonParseNode.java:247) at com.microsoft.kiota.serialization.JsonParseNode.getObjectValue(JsonParseNode.java:198) at com.microsoft.kiota.http.OkHttpRequestAdapter.lambda$throwIfFailedResponse$0(OkHttpRequestAdapter.java:672) at com.microsoft.kiota.ApiExceptionBuilder.(ApiExceptionBuilder.java:26) at com.microsoft.kiota.http.OkHttpRequestAdapter.throwIfFailedResponse(OkHttpRequestAdapter.java:671) at com.microsoft.kiota.http.OkHttpRequestAdapter.send(OkHttpRequestAdapter.java:279) at com.microsoft.graph.beta.users.item.onlinemeetings.item.transcripts.TranscriptsRequestBuilder.get(TranscriptsRequestBuilder.java:90) at com.microsoft.graph.beta.users.item.onlinemeetings.item.transcripts.TranscriptsRequestBuilder.get(TranscriptsRequestBuilder.java:76) at meeting.TeamsOnlineMeeting.getTranscripts(TeamsOnlineMeeting.java:61) at meeting.TeamsOnlineMeeting.main(TeamsOnlineMeeting.java:32)

This is the code:

CallTranscriptCollectionResponse transcripts = graphClient.users().byUserId(getUserId()).onlineMeetings()
                   .byOnlineMeetingId(getMeetingId()).transcripts().get();
List<CallTranscript> ctList = transcripts.getValue();

for(CallTranscript ct:ctList)
{
      System.out.println("Transcript URL "+ct.getTranscriptContentUrl());
}
Ndiritu commented 8 months ago

Thanks for raising this @PRINSIGHT

This is related to https://github.com/microsoftgraph/msgraph-sdk-java/issues/1785

@ramsessanchez will need your help to release Graph Core 3.1.3 and release a new Beta patch

Ndiritu commented 8 months ago

Re-opening for tracking before release

Ndiritu commented 8 months ago

@PRINSIGHT this should be resolved since version 6.2.0.