To reproduce:
Make a request (with a valid Authorization header to this URL: https://5thsgreyhh.execute-api.us-east-2.amazonaws.com/prod/events?group=open-sgf&before=2024-01-16
Expected:
API returns a response like "invalid date string format; expected YYYYMMDD"
Observed:
The Lambda "parses" the before and after params in some weird incorrect way. If the incorrect parsing results in a valid datetime, the API returns a response based on that incorrectly parsed datetime. If it doesn't, we get a response like the following:
{
"success": false,
"error": {},
"errorName": "RangeError",
"errorMessage": "Invalid time value"
}
To reproduce:
Make a request (with a valid
Authorizationheader to this URL: https://5thsgreyhh.execute-api.us-east-2.amazonaws.com/prod/events?group=open-sgf&before=2024-01-16Expected:
API returns a response like "invalid date string format; expected YYYYMMDD"
Observed:
The Lambda "parses" the
beforeandafterparams in some weird incorrect way. If the incorrect parsing results in a valid datetime, the API returns a response based on that incorrectly parsed datetime. If it doesn't, we get a response like the following: