StreamingClientLibrary icon indicating copy to clipboard operation
StreamingClientLibrary copied to clipboard

YouTube ChatClient Connect() silently never returns

Open frogcrush opened this issue 4 years ago • 3 comments

When trying to call Connect() on a YouTube chat client, the call fails silently and never returns a boolean.

In the logs, I can see two exceptions:

Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.dll
Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.dll

Which may or may not be related.

This is using the latest Nuget release.

frogcrush avatar Jul 04 '20 06:07 frogcrush

Correction, it doesn't fail silently, I had just screwed up. However, it does throw an exception if you are not currently streaming and you call Connect() on a ChatClient.

frogcrush avatar Jul 04 '20 06:07 frogcrush

Looking further, it seems it is doing this (for me) even when a stream is running. An exception is being thrown and only logged, and is failing with the following GoogleApiException:

'Incompatible parameters specified in the request: mine, broadcastStatus'

frogcrush avatar Jul 04 '20 06:07 frogcrush

I haven't had a chance to sit down and test out the YouTube live broadcast chat functionality, so a lot of it's built of what documentation is posted up on YouTube's site. See if the above changes solve the problem for you.

SaviorXTanren avatar Jul 05 '20 02:07 SaviorXTanren