You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw new InnertubeError(`Request to ${response.url} failed with status ${response.status}`, yield response.text());
^
InnertubeError: Request to https://www.youtube.com/youtubei/v1/browse?prettyPrint=false&alt=json failed with status 401
at HTTPClient.<anonymous> (<path>)
at Generator.next (<anonymous>)
at fulfilled (/Users/dave/Workspace/node_modules/tslib/tslib.js:166:62)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
info: '{\n' +
' "error": {\n' +
' "code": 401,\n' +
' "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",\n' +
' "errors": [\n' +
' {\n' +
' "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",\n' +
' "domain": "global",\n' +
' "reason": "unauthorized"\n' +
' }\n' +
' ],\n' +
' "status": "UNAUTHENTICATED"\n' +
' }\n' +
'}\n',
date: 2024-07-27T20:29:11.248Z,
version: '10.2.0'
}
Expected behavior
The cookie should function similarly to OAuth authentication.
Current behavior
As documented in #703, there is a difference between no cookies, invalid cookies, and authentic cookies. This doesn't appear to be the case for all endpoints though.
When running in the browser with a Userscript there is no issue. It's not clear what is different as the headers and payload look comparable.
Version
Default
Anything else?
No response
Checklist
I am running the latest version.
I checked the documentation and found no answer.
I have searched the existing issues and made sure this is not a duplicate.
I have provided sufficient information.
The text was updated successfully, but these errors were encountered:
It doesn't seem to be a cookie expiration issue, as the immediate use of cookies also fails. Instead, it appears that browser mechanisms are preventing external clients.
Steps to reproduce
Failure Logs
Expected behavior
The cookie should function similarly to OAuth authentication.
Current behavior
As documented in #703, there is a difference between no cookies, invalid cookies, and authentic cookies. This doesn't appear to be the case for all endpoints though.
When running in the browser with a Userscript there is no issue. It's not clear what is different as the headers and payload look comparable.
Version
Default
Anything else?
No response
Checklist
The text was updated successfully, but these errors were encountered: