Waybar-mpris sometimes returns an invalid JSON #6

Closed
opened 2022-01-24 15:18:28 +01:00 by zsolt-donca · 2 comments

Waybar-mpris sometimes returns an invalid JSON for me on startup:

❯ waybar-mpris --position
Couldn't dial socket, deleting instead: dial unix /tmp/waybar-mpris.sock: connect: connection refused{}

The error message is apparently written to the standard output, the same as {}, which (I suspect) makes waybar crash: https://github.com/Alexays/Waybar/issues/1402

Waybar-mpris sometimes returns an invalid JSON for me on startup: ``` ❯ waybar-mpris --position Couldn't dial socket, deleting instead: dial unix /tmp/waybar-mpris.sock: connect: connection refused{} ``` The error message is apparently written to the standard output, the same as `{}`, which (I suspect) makes waybar crash: https://github.com/Alexays/Waybar/issues/1402
Owner

Just changed it to write to stderr in 39f84a9, hopefully that's fine for now. Does this error appear after you've restarted waybar or something like that?

Just changed it to write to stderr in 39f84a9, hopefully that's fine for now. Does this error appear after you've restarted waybar or something like that?
Author

Just changed it to write to stderr in 39f84a9, hopefully that's fine for now.

Yes, it does fix my issue with Waybar crashing completely.

Does this error appear after you've restarted waybar or something like that?

It appeared on startup, but not on each time.

I guess this issue can be closed now. Thanks for your help!

> Just changed it to write to stderr in 39f84a9, hopefully that's fine for now. Yes, it does fix my issue with Waybar crashing completely. > Does this error appear after you've restarted waybar or something like that? It appeared on startup, but not on each time. I guess this issue can be closed now. Thanks for your help!
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hrfee/waybar-mpris#6
No description provided.