Closed AlGantori closed 2 years ago
@AlGantori for me http://api.aladhan.com/v1/timingsByCity?city=los%20angeles&state=CA&country=USA&method=2 returns a valid response. As does http://api.aladhan.com/v1/timingsByCity?city=Corvallis&state=OR&country=USA&method=2.
Can you please ping api.aladhan.com and let me know which IP address you see. I'll check if it at some point Google returned an error for geocoding and the errored value is cached in the cluster you are accessing.
Following either links will open new browser tabs every time I refresh, and always returns the same response code: 400, status "Bad Request"...
Here the result of the ping:
Thank you. I will have a look today insha'Allah.
I've flushed the cache, please try now.
It's working!!! Thank you so much! May Allah SWT reward you immensely. FYI,
Is "region" a recognized parameter in the URL? it's not in the docs at.
https://aladhan.com/prayer-times-api#GetTimingsByCity
The API does not complain about unknown parameters like foo=CA however documented parameter state=CA is not accepted either but state=California is accepted.
http://api.aladhan.com/v1/timingsByCity?city=los%20angeles&state=CA&country=USA&method=2 also NOT accepted the following
http://api.aladhan.com/v1/timingsByCity?city=Corvallis&state=Oregon&country=USA&method=2
http://api.aladhan.com/v1/timingsByCity?city=Corvallis&state=OR&country=USA&method=2
Thank you.