Hi everyone,
I’m working on a workflow in n8n that automatically publishes posts to Twitter (X). The workflow has two main branches:
- The middle branch generates content, finds a suitable image using OpenAI, transforms the image ID, and successfully publishes the post using X OAuth2 API credentials. Everything works perfectly here.
- The top branch uses a pre-existing image from Google Drive. This branch fails during the HTTP Request step, regardless of which credentials I use.
The error I get is:
Forbidden – perhaps check your credentials?
However, I’ve confirmed that:
- Both sets of X OAuth2 credentials are valid and work correctly in the middle branch.
- The Google Drive file is publicly accessible.
- I’ve tried different configurations and small adjustments in the HTTP node, but the error persists.
Unfortunately, I can’t remove the HTTP Request node from this branch, because it’s used to decode and convert the image ID into a format that the Twitter node accepts.
I suspect the problem might be related to how the request is structured or how the image is being retrieved, possibly triggering Cloudflare security filters.
My questions:
- Has anyone faced a similar issue where an HTTP request works in one path but fails in another, using the same credentials?
- Could this be related to how the Google Drive image is handled or passed through the HTTP node?
- Is there an alternative way to transform the image ID without using a failing HTTP request?
Any ideas or guidance would be greatly appreciated. Thanks in advance!