islamic-network / api.aladhan.com

The AlAdhan API
GNU General Public License v3.0
118 stars 30 forks source link

Is the api down #59

Closed kazimsadiq closed 1 year ago

kazimsadiq commented 1 year ago

I cannot access the aladhan site/api

is it down?

HishamAHai commented 1 year ago

I can confirm it's not working for me too

meezaan commented 1 year ago

@kazimsadiq @HishamAHai No, it is not down - https://status.Islamic.network.

Where are you guys based? Can you flush your dns? Can you share the output of nslookup?

Are you unable to connect? What is the actual problem?

HishamAHai commented 1 year ago

here is the output of nslookup api.aladhan.com Server: 127.0.0.53 Address: 127.0.0.53#53

Non-authoritative answer: api.aladhan.com canonical name = geo.aladhan.com. Name: geo.aladhan.com Address: 198.58.126.25 Name: geo.aladhan.com Address: 2600:3c00::f03c:92ff:fe0e:e6f9

For me the site is not loading and the api does not retrieve any data in my script. Flushing the DNS did not resolve the problem on fedora linux 36

meezaan commented 1 year ago

You have the correct IP address. Are you based in the US as you are hitting the Dallas cluster. Can you ping the domain at all? How about a curl -I. Does it return any headers?

HishamAHai commented 1 year ago

Sorry for the late answer, I'm based in Argentina and the output of curl -I is HTTP/1.1 302 Moved Temporarily Server: nginx Date: Sat, 20 Aug 2022 18:31:04 GMT Content-Type: text/html Content-Length: 138 Connection: keep-alive Location: http://ip-198-58-126-25.cloudezapp.io/v1/timings/ adjustment=1 Expires: Thu, 01 Jan 1970 00:00:01 GMT Cache-Control: no-cache X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Access-Control-Allow-Origin: * X-Cloudez-Verify: 748de5c80d1b2bd6e52577dd0da0351509d64b37318294f11dbc36d6

meezaan commented 1 year ago

@HishamAHai we discovered the issue as discussed on https://community.islamic.network/d/11-api-is-not-working/13 and it has just been fixed. It should be working fine now. Please do confirm. Thank you.

HishamAHai commented 1 year ago

Confirmed. Thanks for your amazing work