From 0f562002b65b3c2d7765ae1433d917d73904248e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Tue, 20 Jan 2026 13:32:22 +0400 Subject: [PATCH] Fix n8n probo request options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- packages/n8n-node/credentials/ProboApi.credentials.ts | 2 +- packages/n8n-node/nodes/Probo/GenericFunctions.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/n8n-node/credentials/ProboApi.credentials.ts b/packages/n8n-node/credentials/ProboApi.credentials.ts index 604ca88f7..3f9311898 100644 --- a/packages/n8n-node/credentials/ProboApi.credentials.ts +++ b/packages/n8n-node/credentials/ProboApi.credentials.ts @@ -44,7 +44,7 @@ export class ProboApi implements ICredentialType { test: ICredentialTestRequest = { request: { baseURL: '={{$credentials?.server}}', - url: '/api/console/v1/query', + url: '/api/console/v1/graphql', method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/packages/n8n-node/nodes/Probo/GenericFunctions.ts b/packages/n8n-node/nodes/Probo/GenericFunctions.ts index 842befb45..f114b5b3d 100644 --- a/packages/n8n-node/nodes/Probo/GenericFunctions.ts +++ b/packages/n8n-node/nodes/Probo/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function proboApiRequest( const options: IHttpRequestOptions = { method: 'POST', baseURL: `${credentials.server}`, - url: '/api/console/v1/query', + url: '/api/console/v1/graphql', headers: { Authorization: `Bearer ${credentials.apiKey}`, 'Content-Type': 'application/json', @@ -37,7 +37,7 @@ export async function proboApiRequest( const response = await this.helpers.httpRequest(options); if (response.errors && Array.isArray(response.errors) && response.errors.length > 0) { - const errorMessages = response.errors.map((err: IDataObject) => + const errorMessages = response.errors.map((err: IDataObject) => err.message || JSON.stringify(err) ).join('; '); throw new NodeApiError(this.getNode(), { @@ -45,7 +45,7 @@ export async function proboApiRequest( httpCode: '200', } as JsonObject); } - + return response; } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject);