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

Keep uwsgi plugin from crashing the agent #463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patrick-minted
Copy link

Uwsgi plugin sometimes receives truncated data back from the uwsgi
stats server. When this happens, json.loads() fails to process the
data, and throws an exception. This bubbled up all the way to the
main python process and halted the agent.

IMO, this should not be an agent-killing problem. Wrapping json.loads()
with a try-except block and giving it some default behavior keeps it
from exploding when it recieves bad data.

Uwsgi plugin sometimes receives truncated data back from the uwsgi
stats server. When this happens, json.loads() fails to process the
data, and throws an exception. This bubbled up all the way to the
main python process and halted the agent.

IMO, this should not be an agent-killing problem. Wrapping json.loads()
with a try-except block and giving it some default behavior keeps it
from exploding when it recieves bad data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant