Comments (7)
from coronavirus-dashboard-api-v2-server.
Where does it cut off? Is there a specific date or area?
from coronavirus-dashboard-api-v2-server.
Will work on getting a list together of any other failing metrics
from coronavirus-dashboard-api-v2-server.
The case age demographics by LTLA is the only one I have come across with the error, this is what happens to the JSON file in Power Query.
As for the CSV version it misses of random LA's of such as Ashford
from coronavirus-dashboard-api-v2-server.
@melvinio16 It's unlikely to be related to metrics so much as it is related to the volume of the data being returned.
I am disabling the streaming in favour of an alternative approach whereby instead of streaming and caching the data simultaneously, we first cache the in storage, then respond with a 303 redirect code against the cached file. This will reduce the chance of premature terminations.
Additionally, I will be adding 2 new tags to the storage files - in_progress
and done
. When in_progress=1
and done=0
, the request will be held (suspended) with 10-second waiting periods. Once in_progress=0
and done=1
, the redirect code will be served. If in_progress=0
and done=0
, the cache item will be deleted to break any outstanding wait clause and induce a retry.
The downside here is this approach:
- if the request fails frequently, you'll end up waiting for longer before getting failed request response
- you don't get a response until everything is ready
On the other hand, I expect this to improve consistency and reliability of the API.
Need to make some fine tuning and perform a few tests. Expect to deploy tonight. Will update here.
from coronavirus-dashboard-api-v2-server.
@colic001 As a part of this update, I've implemented a few safeguards to ensure that the beginning, ending, and separating commas of JSON responses are properly positioned.
from coronavirus-dashboard-api-v2-server.
@melvinio16 / @colic001 I have now deployed the new version. Please do give it a go and let me know how if it's made things better or worse.
from coronavirus-dashboard-api-v2-server.
Related Issues (15)
- Feature Request: Return Last-Modified header with HTTP responses. HOT 1
- Areas that are present at UTLA and LTLA not having data download available in both
- Downloads of MSOA cases data are returning empty files
- Encoding with `+` char not accepted
- MSOA downloads not including City of London MSOA
- Some information requests yield 500 errors HOT 1
- No data received from NHS Trust downloads
- reports of duplicated rows for downloads by MSOA
- API not connecting
- male / female case nested metrics
- Queries from archives not returning data HOT 1
- An LTLA API V2 download fails to return a file HOT 3
- An LTLA download from the API fails to return a file HOT 1
- areaCode and areaName are switched in newCasesBySpecimenDateAgeDemographics JSON output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coronavirus-dashboard-api-v2-server.