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
Sometime between 4.4.0 and 4.6.1, obs-websocket started sometimes responding to GetPreviewScene and GetProgramScene with the following data:
{
"message-id": "8",
"name": "",
"status": "ok"
}
Of note here is that the name is the empty string, and sources is totally omitted.
As far as I can tell, this happens during a brief window of time during OBS' startup sequence. After that, it seems to always have a more properly-formed response.
If this is an intentional change in behavior, I can simply change my code to ignore these empty responses. But, I'm suspecting this change in behavior was unintentional, given that it violates the protocol by omitting the sources array entirely.
Steps to reproduce and other useful info
For me, this bug happens because I have code which is constantly trying to reconnect to OBS after a disconnect event occurs, such as when OBS is deliberately shut down. This means that as soon as OBS boots back up, my code reconnects and instantly starts querying the state of OBS, by sending commands such as GetPreviewScene and GetProgramScene. These commands used to always work as expected, but now there's this brief window of time right after startup where they send this empty response that they didn't used to send.
Technical information
Operating System : Win 10 x64
OBS Studio version : 23.2.1
The text was updated successfully, but these errors were encountered:
Issue type
A change in behavior that may or may not be a bug
Description
Sometime between 4.4.0 and 4.6.1,
obs-websocket
started sometimes responding toGetPreviewScene
andGetProgramScene
with the following data:Of note here is that the
name
is the empty string, andsources
is totally omitted.As far as I can tell, this happens during a brief window of time during OBS' startup sequence. After that, it seems to always have a more properly-formed response.
If this is an intentional change in behavior, I can simply change my code to ignore these empty responses. But, I'm suspecting this change in behavior was unintentional, given that it violates the protocol by omitting the
sources
array entirely.Steps to reproduce and other useful info
For me, this bug happens because I have code which is constantly trying to reconnect to OBS after a disconnect event occurs, such as when OBS is deliberately shut down. This means that as soon as OBS boots back up, my code reconnects and instantly starts querying the state of OBS, by sending commands such as
GetPreviewScene
andGetProgramScene
. These commands used to always work as expected, but now there's this brief window of time right after startup where they send this empty response that they didn't used to send.Technical information
The text was updated successfully, but these errors were encountered: