Closed mj2015 closed 2 years ago
Having looked at the data sent back, it is obvious what is wrong given the error message. outputBytes
should be a long
or Int64
to be parsed properly. Obviously after a few hours of streaming, it has sent a lot of bytes.
The code is currently:
[JsonProperty(PropertyName = "outputBytes")]
public int BytesSent { get; set; }
and needs to be:
[JsonProperty(PropertyName = "outputBytes")]
public long BytesSent { get; set; }
However, I also think all the other ints here should go to longs. I have OBS systems that have been running months, so the duration is going to be large too. Why not play it safe and accept longs?
have the same error ca after ca 4 hours of running
Issue Type
Describe the bug After running for a few hours, I got the following exception:
To Reproduce Steps to reproduce the behavior: Not sure how to reproduce - this is code that runs continuously changing scenes and texts in a display. To keep the connection alive, I read the stream status every 30 seconds. At some point in normal operation, this error occurred. Having restarted my code and OBS, all is back to normal for the moment.
My theory, not having investigated, is that there is a packet index in the response data?
Expected behavior Not to fail.
Versions OBS Version: 28.0.2 Ubuntu OBS WebSocket Version: built in OBS WebSocket Dotnet (this library) Version: 5.0.0.1 OS: Ubuntu 20.04 LTS