You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah query parameters are by-passing the encoder. Given pretty much all of them are strings and numbers, with some special cases for collections, that doesn't matter. Looks like you found an exception though.
Describe the bug
It looks like encoding Swift
Date
as query params of GET requests does not work as expected. Looks like this codesoto-core/Sources/SotoCore/Encoder/RequestContainer.swift
Line 66 in 2614aa4
Date
into a string which results in an URL looking like this:which seems to be rejected by AWS, at least for this particular endpoint. I have a repro when trying to get the sending domain statistics of SES.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The request returns
GetDomainStatisticsReportResponse
Actual behavior
The request fails with
SerializationException: '2024-12-29 23:23:53 +0000' can not be converted to Date
Setup (please complete the following information):
The text was updated successfully, but these errors were encountered: