Insert Message in a YouTube channel - Error code:404

I would like to insert a message once in a while in my 24/7 Video in my YouTube channel.
I connected successfully YouTube and n8n and I can read the messages from the chat.
My Google Cloud Console API is in production but I did not verify it, as I read in this web to avoid it.
I added as scope =https://www.googleapis.com/auth/youtube in G Cloud Console but I am getting this error:

Error code:404

Full message

404 - "{\n \"error\": {\n \"code\": 404,\n \"message\": \"The live chat identified in the API request does not exist. This error occurs if the chat has been deleted by the owner.\",\n \"errors\": [\n {\n \"message\": \"The live chat identified in the API request does not exist. This error occurs if the chat has been deleted by the owner.\",\n \"domain\": \"youtube.liveChat\",\n \"reason\": \"liveChatNotFound\"\n }\n ]\n }\n}\n"

Stack trace

NodeApiError: The resource you are requesting could not be found at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_5aee33ef851c7de341eb325c6a25e0ff/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1472:10) at processTicksAndRejections (node:internal/process/task_queues:105:5) at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_5aee33ef851c7de341eb325c6a25e0ff/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1758:11)

The call I am doing in n8n is:
POST https://www.googleapis.com/youtube/v3/liveChat/messages
query params :
part:snippet
send JSON:
{{
{ “snippet”: {
“liveChatId”: “$(json.items[0].snippet.liveChatId}”,
“type”: “textMessageEvent”,
“textMessageDetails”: {
“messageText”: “${$json.output}” }
}
}
}}

I can write messages as a normal user in the chat box. I am quite lost here. Any help would be appreciated.

Hello @AllianzeEH, how are you?

Share your workflow by downloading the json file and, here in the community, attach the code using the code block ( </> button) so we can better understand your problem.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.