Closed nimpla closed 3 years ago
same here, when contacting: https://api.corona-zahlen.org/germany
I had to take it offline for today. The RKI API responds with errors on some endpoints. This causes a bypass of the caching system which leads to many requests to the RKI API. Last time this happened my IP got blocked by their server. To prevent this to happen again, I have to add an error handler that caches the error.
This API gets 6 million hits per day, which looks like a DDoS attack if not cached correctly.
I had to take it offline for today. The RKI API responds with errors on some endpoints. This causes a bypass of the caching system which leads to many requests to the RKI API. Last time this happened my IP got blocked by their server. To prevent this to happen again, I have to add an error handler that caches the error.
This API gets 6 million hits per day, which looks like a DDoS attack if not cached correctly.
Thanks for the info. Will it be available again tomorrow?
Thank you for your good work 😀
The RKI fixed their API and this server is back online. I added error handling. When the RKI API has problems you will receive a response like this:
{
"error": {
"message": "There is a problem with the official RKI API.",
"rkiError": {
"code": 503,
"message": "Timeout Error",
"details": []
},
"url": "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_COVID19/FeatureServer/0/query?where=NeuGenesen IN(1,0,-9) AND MeldeDatum >= TIMESTAMP '2021-01-11' AND IdBundesland = 2&objectIds=&time=&resultType=standard&outFields=AnzahlGenesen,MeldeDatum,Bundesland,IdBundesland&returnIdsOnly=false&returnUniqueIdsOnly=false&returnCountOnly=false&returnDistinctValues=false&cacheHint=false&orderByFields=IdBundesland,MeldeDatum&groupByFieldsForStatistics=IdBundesland,MeldeDatum,Bundesland&outStatistics=[{\"statisticType\":\"sum\",\"onStatisticField\":\"AnzahlGenesen\",\"outStatisticFieldName\":\"recovered\"}]&having=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pjson&token="
}
}
Hello, the nginx server gives "503 Service Temporarily Unavailable" as response.