Skip to content
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

[bug] None is not of type 'object' #102

Open
nemesifier opened this issue Oct 19, 2022 · 2 comments
Open

[bug] None is not of type 'object' #102

nemesifier opened this issue Oct 19, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nemesifier
Copy link
Member

I receive this error sometimes from the OpenWISP monitoring API (None is not of type 'object'), which goes away on its own but I there must be something causing netjson-monitoring to return invalid ouput.

While debugging this I also noticed this other bug: #101.

@nemesifier nemesifier added the bug Something isn't working label Oct 19, 2022
@nemesifier nemesifier self-assigned this Oct 19, 2022
@nemesifier
Copy link
Member Author

nemesifier commented Oct 26, 2022

I found this problem again and while debugging I have noticed that the agent stored an empty file, which was trying to be sent as is (empty). After removing that file the problem went away and the agent started uploading the other data points.

If we fix #101 there's chances that this kind of issue won't affect us anymore even if it happens sporadically.
I think it happens as the device boots, if I find out the root cause in the first place I'll report here so we can fix that too.

In any case, to be extra sure, @devkapilbansal can we make sure in #103 that we are discarding and removing data files which are already existing? That is, if an existing data file is being sent, and the server returns 400, we should remove it and not send it again.

@devkapilbansal
Copy link
Member

Yes, the file is also removed in case there is 400.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants