Pirate-Weather/pirateweather

Got "could not JSON decode Lambda function response" error when using time machine for certain locations

hengwang322 opened this issue · 5 comments

When trying to make the following call (the location is Adelaide, South Australia, the time is 2023-01-01 00:00:00):

https://timemachine.pirateweather.net/forecast/[APIKEY]/-34.928,138.60,1672531200

I get the following response:

{
  "message": "Bad Gateway",
  "error": "could not JSON decode Lambda function response: statusCode validation failed"
}

After some messing around, I found that it seems only locations with half hour timezone will cause this issue, such as Darwin, Australia (-12.463,130.844), New Delhi, India (28.613,77.209), St. John's, Canada (47.555,-52.745). Maybe the odd timezone is causing the issue.

Thanks for finding this- it's definitely a bug, and specific to the historic data side of things. I'll dig into it and let you know what I find

Your guess was spot on, it was a half hour time zone glitch! Fixed it, and everything should be working now

There has not been any activity on this issue in the last ninety and will automatically close in seven days. Comment on this issue to prevent this issue from closing automatically.

This issue has been automatically closed since there has been no further activity after seven days.

Hello,

I'm trying to get weather data for some (3) locations, but I get the same response:
{ "message": "Bad Gateway", "error": "could not JSON decode Lambda function response: statusCode validation failed" }

This issue begins with 2023-11-01 00:00:00 until today. I also tested it with creators example, still the same response(s).
example link:

https://timemachine.pirateweather.net/forecast/[API-key]/52.54781505900733,13.342027465679983,1698793200?lang=de&units=si