-
Notifications
You must be signed in to change notification settings - Fork 133
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
Unclosed bracket in state json #318
Comments
Hello
Do you have an older version that do not show the bug or is it present in
everything you tried ?
Brice
…On Wed, Mar 6, 2024 at 4:30 PM Pascal Jürgens ***@***.***> wrote:
Hi,
I just noticed that we get some json decoding errors on monitor/state.json.
The culprit is a missing opening square bracket in the clients list.
Here is a snippet containing that region:
{
"number": 1535,
"type": "PCR",
"language": "---"
}
],
"clients": ] #THIS IS INVALID
},
{
"number": 7,
This machine is running MuMuDVB Version 2.1.0_20181020_mumudvb2 which I
built from git-master using the default config IIRC.
The error currently shows on two out of multiple tuners but was absent in
some previous tests.
Perhaps there was a related bugfix earlier that we missed, in that case
sorry for the noise here.
If I can do anything to help with debugging I'm happy to help.
Regards and thanks for making mumudvb,
Pascal
—
Reply to this email directly, view it on GitHub
<#318>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRID4CPVQXTVDJW5LVXZLYW4ZCRAVCNFSM6AAAAABEJI5CW2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TCNZYHAYTGNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
You mean older versions of the JSON response? I do have a historical archive of those, so I can go back and search for valid examples if it helps. Will report back. |
I mean does an older version of MuMuDVB is functional relative to this
issue ? If it is the case we can git bissect to find when the error was
introduced !
…On Fri, Mar 8, 2024 at 10:36 AM Pascal Jürgens ***@***.***> wrote:
You mean older versions of the JSON response? I do have a historical
archive of those, so I can go back and search for valid examples if it
helps. Will report back.
—
Reply to this email directly, view it on GitHub
<#318 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRID6UEUVV2ABVOCC6QRTYXGBCZAVCNFSM6AAAAABEJI5CW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVGM3DCMJSGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello
I have this in the code I see a square bracket opening,
Could you please send me a bit more info so I can check ?
unicast_reply_write(reply, "\n\t\t],\n\t\"clients\": [\n");
unicast_send_client_list_js(channels[curr_channel].clients, reply);
if(channels[curr_channel].num_clients)
reply->used_body -= 2; // dirty hack to erase the last comma
else
unicast_reply_write(reply, "\t\t{}\n");
unicast_reply_write(reply, "\t\t]\n\t},\n");
…On Wed, Mar 6, 2024 at 4:30 PM Pascal Jürgens ***@***.***> wrote:
Hi,
I just noticed that we get some json decoding errors on monitor/state.json.
The culprit is a missing opening square bracket in the clients list.
Here is a snippet containing that region:
{
"number": 1535,
"type": "PCR",
"language": "---"
}
],
"clients": ] #THIS IS INVALID
},
{
"number": 7,
This machine is running MuMuDVB Version 2.1.0_20181020_mumudvb2 which I
built from git-master using the default config IIRC.
The error currently shows on two out of multiple tuners but was absent in
some previous tests.
Perhaps there was a related bugfix earlier that we missed, in that case
sorry for the noise here.
If I can do anything to help with debugging I'm happy to help.
Regards and thanks for making mumudvb,
Pascal
—
Reply to this email directly, view it on GitHub
<#318>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRID4CPVQXTVDJW5LVXZLYW4ZCRAVCNFSM6AAAAABEJI5CW2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TCNZYHAYTGNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi braice, sorry for taking quite some time. The error disappeared after some time, and hasn't come up again. In the absence of a good testing condition, I would simply chalk this up to some station sending non-compliant data (which they surprisingly do quite often). If I run across the error I can re-open again. Sorry for the noise and thanks for your work! |
Hi,
I just noticed that we get some json decoding errors on monitor/state.json.
The culprit is a missing opening square bracket in the clients list.
Here is a snippet containing that region:
This machine is running
MuMuDVB Version 2.1.0_20181020_mumudvb2
which I built from git-master using the default config IIRC.The error currently shows on two out of multiple tuners but was absent in some previous tests.
Perhaps there was a related bugfix earlier that we missed, in that case sorry for the noise here.
If I can do anything to help with debugging I'm happy to help.
Regards and thanks for making mumudvb,
Pascal
[edit] The version we're running is built from current up-to-date master from git.
The text was updated successfully, but these errors were encountered: