Skip to content

Drive root children API failing in Android OS 5 #530

@atulgpt

Description

@atulgpt

Getting com.microsoft.graph.core.ClientException: Error during http request when calling OneDriveGraphServiceClient.me().drive().root().children()

Full stacktrace:
com.microsoft.graph.core.ClientException: Error during http request
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:429)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:204)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:184)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.http.BaseCollectionRequest.send(BaseCollectionRequest.java:89)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.requests.extensions.DriveItemCollectionRequest.get(DriveItemCollectionRequest.java:64)
10-05 10:18:01.628 E/connectors_debug( 8565): at

10-05 10:18:01.628 E/connectors_debug( 8565): Caused by: java.lang.IllegalArgumentException: Unknown pattern character 'X'
10-05 10:18:01.628 E/connectors_debug( 8565): at java.text.SimpleDateFormat.validatePatternCharacter(SimpleDateFormat.java:314)
10-05 10:18:01.628 E/connectors_debug( 8565): at java.text.SimpleDateFormat.validatePattern(SimpleDateFormat.java:303)
10-05 10:18:01.628 E/connectors_debug( 8565): at java.text.SimpleDateFormat.(SimpleDateFormat.java:356)
10-05 10:18:01.628 E/connectors_debug( 8565): at java.text.SimpleDateFormat.(SimpleDateFormat.java:249)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.serializer.CalendarSerializer.deserialize(CalendarSerializer.java:121)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.serializer.GsonFactory$2.deserialize(GsonFactory.java:95)
10-05 10:18:01.628 E/connectors_debug( 8565): at com.microsoft.graph.serializer.GsonFactory$2.deserialize(GsonFactory.java:86)
10-05 10:18:01.628 E/connectors_debug( 8565): at

Expected behavior

API should not fail

Actual behavior

API is failing. It seems that while parsing the date there is an exception which is apparent from the line: Caused by java.lang.IllegalArgumentException: Unknown pattern** **character 'X'

Steps to reproduce the behavior

Query the OneDriveGraphServiceClient.me().drive().root().children() api with Android OS version 5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions