obs websocket vendor event, cant get the detail of an event if it's an array #378
Labels
No labels
area/accessibility
area/dependency
Confirmed
Crash Report
Delayed
Design Issue
Duplicate
Feedback required
Good first issue
kind/bug
kind/cleanup
kind/enhancement
platform/linux
platform/macos
platform/windows
priority/high
Question
Request for Comments
Seeking Other Contributors
Seeking Testers
Won't Fix / By Design
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-obsproject/obs-browser#378
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Operating System Info
Ubuntu 22.04
Other OS
No response
OBS Studio Version
Other
OBS Studio Version (Other)
27.2.4
OBS Studio Log URL
https://gist.github.com/Grummfy/847649e31535add040f7d84b24d7b96a
OBS Studio Crash Log URL
No response
Expected Behavior
receiving event.detail with the data send.
Current Behavior
if the data is an array, the event.detail is not correctly setted.
Steps to Reproduce
From a client send a vendor request in obs to the vendor (with CallVendorRequest to vendorName obs-browser) with data as array or object (in js type) and you have the reproduction.
In the log, we can see the message I have send.
In one the event_data is
this succeed with event.detail containing the information.
this fail with event.detail empty.
Anything else we should know?
No response
Can confirm this is still happening, any kind of array just shows up with zero elements which sucks
@tt2468 do you have any insight into this issue? You seem to be the original author of the WebSocket integration re: #340. I'm unsure what @Grummfy was using, I'm using
obwsand Rust, but it should all still boil down to json. Using the test HTML page and this Rust script, using the default "values" input from serde_json:We can see using Chromium's Inspect Element that it does print to the console, but features has nothing in it. This also happens with vec![].
As well as it prints out our values on the Rust end: