-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aware_debug sometimes makes invalid JSON #7
Comments
Hi Richard, Thank you for your report! Hmm, it looks like JSON format error on iOS client. I'll check it and share you the reason soon. Which version of the client are you using? Thanks, |
Hi, Thanks for taking a look! The devices aren't mine so I don't know details. It is almost certainly one of the versions that has appeared in the store in the last 3 weeks. The json data sent in this table says Thanks,
|
Hi Richard, Thanks! That is the latest version on AppStore. Also, which sensors are you using in your study? Best, |
Hi, Right now we aren't in a formal study and the people can turn on and off sensors as they want. I just asked one person and currently these are on: battery, screen, fused location, ambient noise, activity recognition, device usage, conversation. Would looking at the JSON itself provide any clues about what sensors are causing it? For example, I see these keys in it some of the broken rows:
Does this mean these rows are being generated by these sensors? Most of the other keys look the same. Thanks,
|
Hi, It's been a while, but I saw this come up again. After some work, I found that the As a workaround in my server, this (python) code makes a POST body that works: I'll update again if I find out more. |
Hi,
I have been working to debug a server error and it seems that sometimes the aware_debug table produces invalid JSON. This has been happening for weeks now, so it is something persistent (something in the DB or code, not a one-time thing that happens on upload). The location of the first error (location in uploaded data) is at the same byte offset in the uploaded data, too, also implying it is persistent. The python error message is:
Here is an example of where the error occurs:
When looking at the data and replacing all the valid JSON objects, the first error is this, which exists where an object should otherwise be within the list of rows being uploaded:
Looking in more detail, it seems like the first part of the text of the JSON objects is missing and we consistently have the trailing end of the JSON data. The excerpt above is unique, most of the fragments look like this (this beginning and end text is usually the same, the underscores are a lot of apparently valid JSON with the keys
type
andtimestamp
)This only seems to happen in the aware_debug table, and it appears busty (many rows are fine, then most rows are not fine, etc). Some aware_debug rows were successfully uploaded a long time ago but once this starts, no more succeed (since the server isn't accepting uploads anymore). I have never seen a similar error with another table's upload.
Do you have any thoughts?
Thanks,
The text was updated successfully, but these errors were encountered: