apis-is / apis

Making data readily available to anyone interested
https://apis.is
MIT License
162 stars 64 forks source link

Horse endpoint is not responding data #473

Closed cMurschall closed 5 years ago

cMurschall commented 6 years ago

If I make a request to the horse endpoint e.g. http://apis.is/horses?id=IS1987187700 I get the error

{"error":"www.worldfengur.com refuses to respond or give back data"}

Steps to reproduce

Is it a issue with:

baroninn commented 6 years ago

The problem is with Wordfengur, not apis if you visit their worldfengur page they report that the freezone search is down due to maintenance.

Due to maintenance work on WorldFengur, a freezone horse search can not be offered at this time. We apologise for any inconvenience this may cause.

Loknar commented 6 years ago

There is also probably a cookie issue going on.

If one goes straight to http://www.worldfengur.com/freezone_horse.jsp?c=EN without first visiting their frontpage (http://www.worldfengur.com/), you are greeted with the following response:

500 Internal Server Error

Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.

This was originally the issue when issue ticket was created by @christianMurschall

Can be easily recreated by opening incognito so most definitely a cookie issue thing. This cookie requirement might very well have been added on purpose to break the apis endpoint, but could also be due to some silly server shenanigans changes on Worldfengur's servers that indirectly caused this cookie requirement.

However, as @baroninn mentions, now Worldfengur claims the endpoint is down due to maintenance. It is entirely possible that Worldfengur is lying about maintenance and has disabled their freezone horse search page to stop this kind of data extraction usage.

When/if Worldfengur again opens their freezone horse search page, we just need to add a request to Worldfengur frontpage for cookies and then access the freezone horse search page. I think.

Loknar commented 5 years ago

I contacted Worldfengur via email yesterday evening asking the following:

Sæl/Sæll,

Ég sé að freezone horse uppflettisíðan hjá ykkur hefur verið niðri í einhvern tíma núna. Stendur til að opna hana aftur í framtíðinni?

Mbk,

I got a reply this morning:

Sæll

Nei, síðan verður ekki opnuð aftur.

:(