Comments (9)
Found the issue. Was a bug on my side
from api-covid19-in.
Hey,
Just checked the logs, they seem to be working from 16:30 to 17:30. Logs from 16:30 to 17:30
The expected input data for the NLP API looks something like this
{
"patients": [
{
"patientId": "1",
"notes": "Indian Student Travelled from Italy, Family Member of P13 Friend of P12"
}
]
}
Looking at Unofficial Patient Tracing API
{
"success": true,
"data": {
"source": "covid19india.org",
"lastRefreshed": "2020-03-30T00:54:06.269Z",
"summary": {
"total": 1139
},
"rawPatientData": [
{
"patientId": 1,
"reportedOn": "30/01/2020",
"onsetEstimate": "",
"ageEstimate": "20",
"gender": "female",
"city": "Thrissur",
"district": "Thrissur",
"state": "Kerala",
"status": "Recovered",
"notes": "Travelled from Wuhan",
"contractedFrom": "",
"sources": [
"https://twitter.com/vijayanpinarayi/status/1222819465143832577"
]
}
]
}
}
the data is in a format where the key rawPatientData
is used instead of patients
, so I am guessing the API is having some trouble there. To confirm this, the API must be responding with when the key is not found.
{
"error": "Not the correct request format!"
}
from api-covid19-in.
Likely. @NirantK, can you comment here?
from api-covid19-in.
A small input:
I wrote a small Python snipped that is using data from the Unofficial Patient Tracing API , filtering it for patient ID and notes only and running it through the NLP Data API. I am able to get responses that has valid travel data. If it helps, I am also sending my data in batches of 500.
``
from api-covid19-in.
cc @meghanabhange please check logs for the shared timestamp and confirm if we had an outage at the time?
from api-covid19-in.
@meghanabhange rawPatientData
is the response from the rootnet API, but the query to the NLP API is still sent as patients
.
from api-covid19-in.
@meghanabhange you can confirm my assertion here: https://github.com/amodm/api-covid19-in/blob/master/data/unofficial/index.js#L60
from api-covid19-in.
Thanks for the confirmation @amodm.
Confirming via logs, that we are receiving requests with the patients
key. We are also returning a response as shared:
{
"patients": [
{
"1": {
"nationality": [],
"place_attributes": [
{
"is_foreign": true,
"place": "Nepal"
}
],
"relationship": [],
"travel": [
"Nepal"
]
}
}
]
}
How can I repro this?
Would it help if we could look at the response/error you're getting from the NLP endpoint via your logs? Something a little more descriptive than throw e.g. 500 or a parsing error (possible here)
from api-covid19-in.
I've enabled the error logging now (was disabled earlier). Will revert.
from api-covid19-in.
Related Issues (20)
- In the unofficial patient tracking data API, gender is defaulted to "female" HOT 3
- Testing Data not being update HOT 1
- Today's Data is not coming in history API HOT 1
- Statewise data not updating HOT 1
- Mismatch in Numbers HOT 2
- Latest testing data for the country not updating HOT 1
- Change in MoHFW table structure and null values HOT 3
- Null deaths and recovered in daily api HOT 2
- Data updation HOT 1
- API data not updated. HOT 1
- Testing Data is not updated after 24th July, 2020 HOT 3
- Raw Data missing from 28th July 2020 to 31st July 2020 HOT 5
- Data missing for Aug 31 and Sep 2 HOT 6
- COVID19 Stats History Data same for Sept 24th and Sept 25th HOT 1
- Duplicate Data for few dates in Sept and Oct HOT 1
- Pair of Duplicates for 23rd and 24th Oct in covid19-stats API HOT 1
- New pair of duplicates for Oct 23 and 24 on COVID19 India stats history API HOT 2
- Are the APIs still relevant for Covid-19 2nd Wave and what is the frequency at which it pulls data from Govt Database HOT 1
- the beds data is not live its from 2018 HOT 2
- CORS ISSUE HOT 5
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 api-covid19-in.