N8N API error bad request

I am trying to use this workflow Backup all n8n workflows to Google Drive every 4 hours to backup my workflows. However, I am unable to connect the n8n credentials.

When I attempt to make a request to the /api/v1 endpoint, I get the following error message:

{“message”:“Error parsing https://www.tiktok.com/usr/local/lib/node_modules/n8n/dist/public-api/v1/openapi.yml: end of the stream or a document separator is expected (2:25)\n\n 1 | <meta …\n 2 | -webkit-box-pack: center;\n-----------------------------^\n 3 | -ms-flex-pack: center;\n 4 | -webkit-justify-content: center;”}

N8N version : 1.109.1
Running via docker

The error occurs because n8n is expecting an OpenAPI YAML file but is receiving HTML/CSS instead.This means n8n is resolving an incorrect external base URL (e.g. tiktok.com) and is requestingopenapi.yml from the wrong host, causing the YAML parser to fail.

You can verify this by opening:https://<your-n8n-domain>/api/v1/openapi.ymlThis endpoint should return YAML starting with openapi: 3.0.0. If it returns HTML, the base URL or proxy configuration is incorrect.