-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
9.2.0 Posts a comment with error 403 #633
Comments
Works fine here, but I'm using OAuth. I do not recommend cookies because Google rotates them every 15 minutes or so. Also, you do not need the Edit: const comments = await yt.getComments('VIDEO_ID');
console.log(await comments.createComment('test')); |
ClientType.ANDROID is faster than WEB.
When I use OAuth there is no problem with ClientType.WEB, but when I use ClientType.ANDROID I get this error.
Node.js v18.16.0 |
In your case, there's no difference. |
I just made use of WEB and it was successful. |
How do i clear the cached credentials? Take for instance if i'm switching accounts |
Steps to reproduce
import { ClientType, Innertube } from 'youtubei.js';
async function start() {
const yt = await Innertube.create(
{
client_type: ClientType.WEB,
cookie: "my browser cookie..."
}
);
const vid = 'ZiplxPdOJd4';
}
start();
Failure Logs
Expected behavior
Send a comment and get the result.
Current behavior
Not sending the comment while other functions like getHomeFeed works fine.
Version
Default
Anything else?
No response
Checklist
The text was updated successfully, but these errors were encountered: