Skip to content
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

Failed auth: Client/server version mismatch #61

Open
chmanie opened this issue Jul 7, 2022 · 10 comments
Open

Failed auth: Client/server version mismatch #61

chmanie opened this issue Jul 7, 2022 · 10 comments

Comments

@chmanie
Copy link

chmanie commented Jul 7, 2022

I'm trying to use this tool (v0.5.0) with OBS v27.2.4 and obs-websocket v5.0.0.

When trying to do obs-cli scene list I'm getting the following error message:

error: Failed auth: Client/server version mismatch? Unrecognized message: {"d":{"obsWebSocketVersion":"5.0.0","rpcVersion":1},"op":0}

I disabled authentication for this test.

What am I missing?

EDIT: I just saw that v5.0.0 of obs-websocket was just released 3 days ago. Well, that must be why :) Let me know if I can help in any way.

@fdaciuk
Copy link

fdaciuk commented Jul 8, 2022

Yeah, same problem here because obs-websocket just updated from v4.9.1 to v5.0.0 =)

@v3eil
Copy link

v3eil commented Sep 1, 2022

Same
error: Failed auth: Client/server version mismatch? Unrecognized message: {"d":{"obsWebSocketVersion":"5.0.1","rpcVersion":1},"op":0}

@genpfault
Copy link

genpfault commented Feb 6, 2023

The obs-websocket-4.9.1-compat plugin Worked For Me™ with OBS 28.0.1 on Windows.

EDIT: ...mostly; getting stuff like this on occasion:

panic: send on closed channel

goroutine 22 [running]:
github.com/andreykaipov/goobs.(*Client).writeEvent(0xc0001a8000, {0x4d1a28, 0xc0002a2000})
        github.com/andreykaipov/[email protected]/client.go:282 +0x47
github.com/andreykaipov/goobs.(*Client).handleRawMessages(0xc0001a8000, 0xc00009aae0, 0x14f8a5)
        github.com/andreykaipov/[email protected]/client.go:269 +0x27d
github.com/andreykaipov/goobs.(*Client).handleMessages(0xc0001a8000)
        github.com/andreykaipov/[email protected]/client.go:215 +0x125
created by github.com/andreykaipov/goobs.New
        github.com/andreykaipov/[email protected]/client.go:141 +0x3c7

@mystiquewolf
Copy link

The obs-websocket-4.9.1-compat plugin Worked For Me™ with OBS 28.0.1 on Windows.

Unfortuntely doesn't seem to work on Kubuntu 23.04

@profdecoy
Copy link

The obs-websocket-4.9.1-compat plugin Worked For Me™ with OBS 28.0.1 on Windows.

Unfortuntely doesn't seem to work on Kubuntu 23.04

If you use the PPA from OBS themselves, the compat websocket package does work. However, you have to force the version from the PPA and apt flags it as having broken dependencies.

@grigio
Copy link

grigio commented May 20, 2023

obs-cli recording toggle
error: Failed auth: Client/server version mismatch? Unrecognized message: {"d":{"obsWebSocketVersion":"5.2.2","rpcVersion":1},"op":0}

@mccollam
Copy link

mccollam commented Jun 2, 2023

I got the package working on Ubuntu, but had to symlink the libraries to the appropriate place before OBS Studio would pick them up. The process is described here: obsproject/obs-websocket#995

@grigio
Copy link

grigio commented Jun 2, 2023

https://github.com/grigio/obs-cmd

if you are interested it's a minimal implementation of obs websocket 5

@pschmitt
Copy link

pschmitt commented Jun 5, 2023

I couldn't find any alternative to obs-cli that supports scene switching, items, filters and hotkeys that works with the new websockets API.

So here's my implementation, in Python:
https://github.com/pschmitt/obs-cli

@poleguy
Copy link

poleguy commented Jul 14, 2023

I wish pschmitt's version showed up on the google main search page. It actually works without a bunch of hoop jumping for a simple stop veritual cam cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants