magnetcustomer / n8n-nodes-magnetcustomer

MIT License
0 stars 0 forks source link

getaddrinfo ENOTFOUND api.magnetcustomer.com | The connection cannot be established #1

Open ricardoisus opened 2 weeks ago

ricardoisus commented 2 weeks ago

Contexto: Não consigo fazer qualquer requisição com o módulo da MagnetCustomer, sempre aparece o erro ENOTFOUND.

Informações:

tela-n8n

{ "errorMessage": "Internal error", "errorDescription": "getaddrinfo ENOTFOUND api.magnetcustomer.com", "errorDetails": { "rawErrorMessage": [ "The connection cannot be established, this usually occurs due to an incorrect host (domain) value", "The connection cannot be established, this usually occurs due to an incorrect host (domain) value" ], "httpCode": "ENOTFOUND" }, "n8nDetails": { "nodeName": "MagnetCustomer", "nodeType": "@magnetcustomer/n8n-nodes-magnetcustomer.magnetCustomer", "nodeVersion": 1, "resource": "person", "operation": "create", "time": "18/10/2024, 15:26:01", "n8nVersion": "1.54.0 (Self Hosted)", "binaryDataMode": "default", "stackTrace": [ "NodeApiError: The connection cannot be established, this usually occurs due to an incorrect host (domain) value", " at Object. (/home/node/.n8n/nodes/node_modules/@magnetcustomer/n8n-nodes-magnetcustomer/nodes/MagnetCustomer/GenericFunctions.ts:93:9)", " at Generator.throw ()", " at rejected (/home/node/.n8n/nodes/node_modules/@magnetcustomer/n8n-nodes-magnetcustomer/dist/nodes/MagnetCustomer/GenericFunctions.js:6:65)", " at processTicksAndRejections (node:internal/process/task_queues:95:5)" ] } }

Conexão: conexão

ricardoisus commented 2 weeks ago

No campo de "Subdomain Platform URL" ao invés de utilizar url completa, coloquei somente o primeiro termo da url e funcionou corretamente.

Exemplo: ao invés de preencher o campo com "subdomain.mydomain.com", preenchi apenas com "subdomain". (sem aspas)

Além disso, atualizei para versão 1.2.0 do node.

Funcionando corretamente (y)