-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Empty show more show less
-
HL & LD 26
-
3
Steps to reproduce
- Attempt to use a query which retrives the `lastModified` property of assets, for example:
{ assets{ fileName lastModified } }
.. Logs, screenshots, gifs...
Expected results
Get results.
Actual results
Response includes error messages:
{ "status": 500, "errors": [ { "message": "Can't serialize value (/assets[0]/lastModified) : Expected type 'Long' but was 'GregorianCalendar'.", "path": [ "assets", 0, "lastModified" ], "exception": { "cause": null, "stackTrace": [ { "methodName": "serialize", "fileName": "Scalars.java", "lineNumber": 355, "className": "graphql.Scalars$6", "nativeMethod": false },
Log
2021-03-31 09:27:00,417 WARN notprivacysafe.graphql.execution.ExecutionStrategy: Can't serialize value (/assets[0]/lastModified) : Expected type 'Long' but was 'GregorianCalendar'. graphql.schema.CoercingSerializeException: Expected type 'Long' but was 'GregorianCalendar'. at graphql.Scalars$6.serialize(Scalars.java:355) ~[graphql-java-14.1.jar:?] at graphql.Scalars$6.serialize(Scalars.java:327) ~[graphql-java-14.1.jar:?] at graphql.execution.ExecutionStrategy.completeValueForScalar(ExecutionStrategy.java:579) ~[graphql-java-14.1.jar:?]
Workaround
Development notes
Acceptance criteria