The requested scope is invalid, unknown, or malformed

Describe the problem/error/question

Hey there, when using the HTTP Request node to make a call on my OCR API, i get an error.

It works fine using the API swagger from Open API.

It also works fine using Insomnia Request Handler.

I’m using the exact same auth configuration on n8n, but it doesn’t work.

What is the error message (if any)?

{
  "errorMessage": "The requested scope is invalid, unknown, or malformed.",
  "errorDetails": {
    "rawErrorMessage": [
      "The requested scope is invalid, unknown, or malformed."
    ],
    "httpCode": "EAUTH"
  },
  "n8nDetails": {
    "nodeName": "HTTP Request1",
    "nodeType": "n8n-nodes-base.httpRequest",
    "nodeVersion": 4.2,
    "itemIndex": 0,
    "time": "10/18/2024, 11:01:33 AM",
    "n8nVersion": "1.60.0 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeApiError: The requested scope is invalid, unknown, or malformed.",
      "    at Object.execute (/home/mat/documents/n8n/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:1894:15)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at Workflow.runNode (/home/mat/documents/n8n/packages/workflow/src/Workflow.ts:1382:8)",
      "    at /home/mat/documents/n8n/packages/core/src/WorkflowExecute.ts:1166:27",
      "    at /home/mat/documents/n8n/packages/core/src/WorkflowExecute.ts:1886:11"
    ]
  }
}

Please share your workflow

With this auth setup :

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.63.4
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): I don’t know, default I guess
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Kubernetes and Docker
  • Operating system: Kubernetes using n8n helm chart with official n8n Docker image. Computer used to access UI is Windows 11 pro based.

core

  • n8nVersion: 1.63.4
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.18.0
  • database: postgres
  • executionMode: regular
  • concurrency: -1
  • license: community
  • consumerId: unknown

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 3760 hours
  • maxCount: 10000 executions

security

  • secureCookie: false

Generated at: 2024-10-18T09:15:08.576Z

hello @Gentleman9914

OAuth requires you to use a scope parameter that is not set in your credentials. Check the docs for the service you are trying to connect to

Hey there, I know but the API I’m trying to use is my own, that we host on our infrastructure.

It works fine in Insomnia without any scope :

I don’t really know what else I can do, maybe try to roll up n8n locally and debug on my computer.

I’ve just had success adding this scope :

openid profile email

Don’t know exactly why was it required as I don’t use any on the swagger nor on my Insomnia HTTP client for the exact same request but anyway I can keep going forward now.

1 Like

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