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

Starting live chat with channel id is not working on v2.2.0 #93

Open
Arlandrian opened this issue Dec 13, 2022 · 4 comments
Open

Starting live chat with channel id is not working on v2.2.0 #93

Arlandrian opened this issue Dec 13, 2022 · 4 comments

Comments

@Arlandrian
Copy link

It's working properly on v2.1.1.

This is how I start the object:
let liveChat = new LiveChat({channelId: botConfig.channelId})

@neverclear86
Copy link
Collaborator

Please check again if the ID is correct
I just tried and it works fine

@Arlandrian
Copy link
Author

Still the same it works fine with the 2.1.1 but on 2.2.0 it throws Error: Live Stream was not found exception.
at getOptionsFromLivePage (\node_modules\youtube-chat\dist\parser.js:11:15)

I've tested with 2 different youtube channels with the both version.
Here is how I test it:

let test_live = new LiveChat({channelId: `channel-id`})
start()
async function start(){
  try{
    let isLiveStream = await test_live.start()
    console.log(isLiveStream)
  }catch(e){
    console.error(e)
  }
}

@neverclear86
Copy link
Collaborator

@Arlandrian

  1. Does it work if I specify handler?
  2. What is the language set in your OS?

It works fine in my environment
The part that specified utf-8 may be affected

@Arusu12
Copy link

Arusu12 commented Apr 25, 2023

@neverclear86

I am having the same issue. It says that no livestream is found when using channel Id. But working fine with liveId.

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

3 participants