X OAuth 1 API Authentication - Error "OAuth Authorization Error There was a problem generating the authorization URL Invalid URL"

Describe the problem/error/question

Simple OAuth 1 configured with X account settings and the correct urls giving me error OAuth Authorization Error
There was a problem generating the authorization URL
Invalid URL

What is the error message (if any)?

OAuth Authorization Error
There was a problem generating the authorization URL
Invalid URL

Please share your workflow

Create a HTTP Request node, inside it select “Authentication : Generic”, then configure the generic auth type to oauth 1, then configure the urls and the secrets. click test credentials, error appears

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

None

Information on your n8n setup

  • n8n version : N8N SaaS
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Douglas_Jose_Pereira Welcome to n8n :n8n: community :tada:

AFAIK, X (formerly Twitter) is deprecating several legacy v1.1 API endpoints, and as of March 31, 2025, the media upload endpoint has also been deprecated.

So, I’d recommend switching to the v2 API.

If you’re looking to use it for media uploads, this isn’t natively supported in n8n yet—but there is a workaround you can try:
http://community.n8n.io/t/post-media-to-x-twitter-via-api-new/90997

Thanks man !! I have been trying but getting errors. Any idea when this will be incorporated into n8n’s feature for X OAuth V2 ?