Does not work with channelId but it works liveId
See original GitHub issueit does not work when i put my channel id:
//const liveChat = new LiveChat({ liveId: "0cWertczhs0" })
const liveChat = new LiveChat({ channelId: "UC8v86z0UWlgIg-foURD1Lyw" })
const ok = liveChat.start()
// Emit at start of observation chat.
// liveId: string
liveChat.on("start", (liveId) => {
/* Your code here! */
console.log("1");
})
// Emit at end of observation chat.
// reason: string?
liveChat.on("end", (reason) => {
/* Your code here! */
console.log("2");
})
// Emit at receive chat.
// chat: ChatItem
liveChat.on("chat", (chatItem) => {
/* Your code here! */
console.log("3");
})
// Emit when an error occurs
// err: Error or any
liveChat.on("error", (err) => {
/* Your code here! */
console.log("4");
})
// Start fetch loop
if (!ok) {
console.log("Failed to start, check emitted error")
}
error:
D:\999 - OS\Documents\LoquendoBotV2\node_modules\axios\lib\adapters\xhr.js:210 GET https://consent.youtube.com/m?continue=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUC8v86z0UWlgIg-foURD1Lyw%2Flive&gl=NL&m=0&pc=yt&uxe=23983171&hl=en&src=1 403
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10
Top Results From Across the Web
Telethon doesn't work with channel ID but works with username
But i don't understand why work only if use username in channelID, i want use ID because some channel are private.
Read more >File picker - OneDrive dev center - Microsoft Learn
The picker is designed to work with either OneDrive OR SharePoint in a given instance and only one of the entry sections should...
Read more >Microsoft365 – Mohamed Ashiq Faleel
This example delivers messages only on the Team channel and not to the users directly so you can choose the service URL based...
Read more >Hass.io Add-on: Xbox One - Home Assistant OS
I fixed it by changing the version number in the custom_component. Now it works flawlessly and I do not have any problems with...
Read more >Use Content ID matching on live streams - YouTube Help
However, matching can only be turned on and managed by the individual channel ... Track policies will not work for Content ID matching...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I see… I didn’t notice it because there is no dialog in Japan. 😞 I have a plan to replace axios with another library, so I’m sorry, but I’ll think about it a bit.
I figured it out:
in my country you need to confirm a dialog before opening youtube:
i tried it with postman and these are the headers i need to send:
but if i try to send these headers with the npm package axios i get this:
and when i do it with npm package request it is a success:
you can close the case if you want but if other people use your package it will need to get updated.