{
"prayerTime": {
"data": [
"No data available for the current request"
]
},
"status": "NO_RECORD!",
"serverTime": "2022-12-01 10:20:05",
"periodType": "month",
"lang": "ms_my",
"zone": "KTN03",
"bearing": "291° 40′ 41″"
}
Duh? No data is available?
AFAIK, For Kelantan, JAKIM has two zones only: KTN01 and KTN03. (Yep, KTN02 was not there the whole time, even this guy from 2010 also noticed that KTN02 was not there)
10.47 am MYT
Time to made decision. Discussed below
8.44pm MYT
Done re-fetch the whole thing, and made duplicate for KTN03 for backward compatibility. Deployed mpt-server with updated data just now.
Discussion
One question I had in mind. Is this change (KTN03 to KTN02) is permanent or temporary? It is hard to tell as I couldn't find any announcements of this change (including the official portal: https://www.islam.gov.my)
Only time can tell. For now, I'm gonna fix the fetcher script to point to KTN02. Since the app is hardcoded to KTN03, I need to duplicate the data to KTN03 so the app can fetch it.
Overview
Approximately at 10 am (1/12/2022), I received an automated email from GitHub saying that the scheduled workflow run from mpt-backup-api has failed.
Looking at the logs, the fetcher keeps retrying to fetch KTN03 from JAKIM API. The status code is
200
so maybe there are something that is notOK
Full logs of the workflow step here: 5_execute py script.txt
Updates
10.00 am MYT Investigation begin by opening the MPT app and change location to KTN03. As I'am expecting, an error appeared:
10.26 am MYT
I simulate the API call in insomnia:
Response:
Duh? No data is available?
AFAIK, For Kelantan, JAKIM has two zones only: KTN01 and KTN03. (Yep, KTN02 was not there the whole time, even this guy from 2010 also noticed that KTN02 was not there)
^ Wayback machine to 2019
So, I retried the Insomnia request with KTN02
Response (boom! KTN02 that has been sleeping for eternity has awaken):
10.47 am MYT Time to made decision. Discussed below
8.44pm MYT Done re-fetch the whole thing, and made duplicate for KTN03 for backward compatibility. Deployed mpt-server with updated data just now.
Discussion
One question I had in mind. Is this change (
KTN03
toKTN02
) is permanent or temporary? It is hard to tell as I couldn't find any announcements of this change (including the official portal: https://www.islam.gov.my)Only time can tell. For now, I'm gonna fix the fetcher script to point to KTN02. Since the app is hardcoded to KTN03, I need to duplicate the data to KTN03 so the app can fetch it.