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

403 PERMISSION_DENIED even with LOGIN_INFO #17

Open
chrisrollins65 opened this issue Mar 25, 2021 · 5 comments
Open

403 PERMISSION_DENIED even with LOGIN_INFO #17

chrisrollins65 opened this issue Mar 25, 2021 · 5 comments

Comments

@chrisrollins65
Copy link

Thanks adasq for your comment in the previous issue I opened. Based on that I created a simple node module to try to connect to my YouTube channel but I'm getting this PERMISSION_DENIED error:

{
    "error": {
        "code": 403,
        "message": "The caller does not have permission",
        "errors": [
            {
                "message": "The caller does not have permission",
                "domain": "global",
                "reason": "forbidden"
            }
        ],
        "status": "PERMISSION_DENIED"
    }
}

Here's how I set it up, almost a copy-paste from the examples. I triple-checked the cookie credentials.

To run the script I just ran node index.js directly in the command line.

This is for a google account with 2 channels. I tried using the LOGIN_INFO for each of them, changing the VIDEO_ID and CHANNEL_ID appropriately as well.

Anything I'm doing wrong?

Additional info in case it helps:
Node v14.16.0
Windows 10

@adasq
Copy link
Owner

adasq commented Apr 6, 2021

Hey, can you simply check whether simple getVideo() works for you?

@chrisrollins65
Copy link
Author

Hi @adasq,

It gives this error even for getVideo(), but I noticed that if I remove the LOGIN_INFO credential, I get the following response:

{
    "responseContext": {
        "visitorData": "CgtoemVoUTNGcVFaZyjx58KDBg%3D%3D",
        "serviceTrackingParams": [
            {
                "service": "CSI",
                "params": [
                    {
                        "key": "c",
                        "value": "WEB_CREATOR"
                    },
                    {
                        "key": "cver",
                        "value": "1.20191120.0.1"
                    },
                    {
                        "key": "yt_li",
                        "value": "1"
                    },
                    {
                        "key": "GetCreatorVideos_rid",
                        "value": "0x4f6ff8413ea6578d"
                    }
                ]
            },
            {
                "service": "GFEEDBACK",
                "params": [
                    {
                        "key": "logged_in",
                        "value": "1"
                    },
                    {
                        "key": "e",
                        "value": "23891344,23735348,24021968,24023968,24022681,23975654,24022955,23983296,24010576,23744176,24022914,24023964,24022907,23934970,23974595,23984880,23748146,23917877,24011119,24023966,24010543,23918597,
23882503,24015704,23990441,24006795,23968386,24022875,24023962,24001373,24022617,24022308,24016478,23976696,24007246,1714257,23944779,23884386,23987676,23804281,23999152,24022836,23946420,23990877,23891346,23966208,24014268,24012117
,23969934"
                    }
                ]
            },
            {
                "service": "GUIDED_HELP",
                "params": [
                    {
                        "key": "logged_in",
                        "value": "1"
                    }
                ]
            },
            {
                "service": "ECATCHER",
                "params": [
                    {
                        "key": "client.version",
                        "value": "1.20000101"
                    },
                    {
                        "key": "client.name",
                        "value": "WEB_CREATOR"
                    }
                ]
            }
        ],
        "webResponseContextExtensionData": {
            "hasDecorated": true
        }
    },
    "videos": [
        {
            "videoId": "F3pnhaBpWdQ",
            "responseStatus": {
                "statusCode": "CREATOR_ENTITY_STATUS_FAILURE"
            },
            "loggingDirectives": {
                "trackingParams": "CAAQiI4CIhMI3vbXrfvx7wIVPCBMCh0eOQp5"
            }
        }
    ]
}

@QuentinJanuel
Copy link

Same issue here

@khanra17
Copy link

Same

@adasq
Copy link
Owner

adasq commented Jun 24, 2021

Hey folks, sorry to hear that.

Please, import getDebugInfo function from the package and try to call it after init. It will show you some information, including config which should be valid object.

Let me know, cheers!

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

4 participants