My front-end requests transit for its format. My back end attempt to sent something including a field :created #time/instant "2020-04-26T07:29:58.413Z". Upon attempting to send the data, JVM cries out:
java.lang.RuntimeException: java.lang.Exception: Not supported: class java.time.Instant
at com.cognitect.transit.impl.WriterFactory$1.write(WriterFactory.java:65)
I’m using ring.middleware.format/wrap-restful-format so I would think the answer would somehow be in connection with that… how can I get over this error to successfully send my data with transit?
I think your answer is probably correct, but it was unclear to me how to implement it into my middleware. Unfortunately, given time constraints, the simplest answer was simply “don’t use transit.” I changed the request format to JSON and everything simply worked.