Closed longseespace closed 10 months ago
Thank you so much for reporting and contributing a fix, @longseespace.
For the life of me, I can't figure out why some dates are being serialized from the server with fractional seconds and some without. But given Swift / Foundation's inflexibility on parsing, turning off fractional seconds would break existing clients.
I found this Swift.org forum thread from 2019 reporting this issue. It's too bad that there doesn't seem to be a better way to solve this than trying again with different options.
I just merged #60, which extends #59 to use .withInternetDateTime
instead of .withFullDate
| .withFullTime
, reuse the existing formatter
instance, and exercise this with a new DateDecodingTests
class.
This is now fixed in 0.17.1.
Overview
Fetching model
prompthero/openjourney
(https://replicate.com/prompthero/openjourney) fails with this error:The culprit: