You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sometimes, when probe-desktop reads the output from running ooniprobe run <test> --batch as a ReadableStream, the on('data') event handler receives non-JSON data. In this case, it was this error message:
2021/03/10 12:18:22 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
It seems to swallow a small amount of data that would otherwise be shown in the UI when the test is running. This doesn't happen when it is run directly from the terminal with/without the --batch flag.
To Reproduce
This sample code can reproduce the bug. Although it happens intermittently.
This is intermittent because it depends on which resolver is selected. We see this warning only when http3 is used. We are now using http3 to reach some dns-over-https resolvers. The right fix to me seems to use stdout for JSON messages and stderr for everything else that is not related to messages. I can confirm by manually running a test program that the error you are talking about is emitted by a dependency and is indeed emitted onto the standard error. So, I'll just change ooniprobe to emit JSON on the stdout.
Describe the bug
Sometimes, when
probe-desktop
reads the output from runningooniprobe run <test> --batch
as a ReadableStream, theon('data')
event handler receives non-JSON data. In this case, it was this error message:2021/03/10 12:18:22 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
It seems to swallow a small amount of data that would otherwise be shown in the UI when the test is running. This doesn't happen when it is run directly from the terminal with/without the
--batch
flag.To Reproduce
This sample code can reproduce the bug. Although it happens intermittently.
Expected behavior
Errors are expected on
stdout
in batch mode where we do not attempt to JSON.parse the content.System information (please complete the following information):
The text was updated successfully, but these errors were encountered: