StatistikStadtZuerich / stat.stadt-zuerich.ch

API Backend for the linked open statistical data of the Municipality of Zurich
Other
0 stars 0 forks source link

Slice-API antwortet bei einigen Slices mit Status 204 (No Content) #55

Open mchlrch opened 6 years ago

mchlrch commented 6 years ago

Bei einigen Datasets kann die defaultSlice noch nicht korrekt geladen werden. Das API antwortet lediglich mit Status 204 (No Content).

Das Problem scheint u.a. durch die Grösse der Slices begünstigt zu werden. Die betroffenen Slices haben mehr als 5'000 Observations.

$ time curl -i -H "accept:application/json" http://localhost:8080/dataset/STF-RAUM-ZEIT-ZON/slice?
HTTP/1.1 204 No Content
link: <http://localhost:8080/api>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation"
access-control-allow-origin: *
cache-control: public, max-age=604800
vary: Accept
access-control-expose-headers: Link
Date: Wed, 22 Aug 2018 20:33:26 GMT
Connection: keep-alive

real    1m0.204s
user    0m0.010s
sys 0m0.009s
mchlrch commented 6 years ago

Als Workaround werden die folgenden Datasets zurzeit aus der API (in Produktion) ausgeschlossen: