Skip to content

Is stats omitting lines? #2036

Answered by MaxKellermann
SoongNoonien asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, it is indeed possible for MPD to return empty stats. That can happen for example if the "proxy" database plugin fails; therefore you should really change your code to make it more robust against server-side errors where the response doesn't look like you expect it to be.
But in that user's setup, with the standard database plugin, that shouldn't happen. I can't explain what went wrong there, but in any case making code robust is a good idea.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@SoongNoonien
Comment options

@MaxKellermann
Comment options

@SoongNoonien
Comment options

@MaxKellermann
Comment options

@SoongNoonien
Comment options

Comment options

You must be logged in to vote
2 replies
@MaxKellermann
Comment options

Answer selected by SoongNoonien
@SoongNoonien
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants