To start off and clear things out, this is my setup:
I've successfully installed and started using n8n with Docker using webhooks, whenever I try to send information directly to my panel, I'm able to get it there, but this is not the case when trying to use trigger nodes, such as Trello or HubSpot.
Whenever I try to receive information from these other nodes, I either get blank results or bad request errors. Digging a little deeper on the n8n debug log results I've extracted the following:
2022-10-17T15:11:57.796Z | debug | Request proxied to Axios failed "
{
error: Error: Request failed with status code 400
at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (node:events:525:35)
at IncomingMessage.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
{
config: {
url: 'https://api.trello.com/1/tokens/9ebc9a6281e19fcb3ed1875ac72ebdcdcc5dc39a770d81979636d33346166262/webhooks',
method: 'post',
data: '{\"description\":\"n8n Webhook - 633d96c756d9e90118147cc5\",\"callbackURL\":\"https://n8n.bitsti.com.br/webhook-test/3bf8c9d9-795d-4636-8678-540d332c7071/webhook\",\"idModel\":\"633d96c756d9e90118147cc5\"}',
headers: [Object],
params: [Object],
transformRequest: [Array],
transformResponse: [Array],
paramsSerializer: [Function (anonymous)],
timeout: 300000,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
validateStatus: [Function: validateStatus],
transitional: [Object],
'axios-retry': [Object]
},
request: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /1/tokens/9ebc9a6281e19fcb3ed1875ac72ebdcdcc5dc39a770d81979636d33346166262/webhooks?key=b3ac16557808789625190877e899ca5f&token=9ebc9a6281e19fcb3ed1875ac72ebdcdcc5dc39a770d81979636d33346166262 HTTP/1.1\\r\\n' +
'Accept: application/json\\r\\n' +
'Content-Type: application/json\\r\\n' +
'User-Agent: axios/0.21.4\\r\\n' +
'Content-Length: 193\\r\\n' +
'Host: api.trello.com\\r\\n' +
'Connection: close\\r\\n' +
'\\r\\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/1/tokens/9ebc9a6281e19fcb3ed1875ac72ebdcdcc5dc39a770d81979636d33346166262/webhooks?key=b3ac16557808789625190877e899ca5f&token=9ebc9a6281e19fcb3ed1875ac72ebdcdcc5dc39a770d81979636d33346166262',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'api.trello.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 400,
statusText: 'Bad Request',
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
},
isAxiosError: true,
toJSON: [Function: toJSON]
},
file: 'NodeExecuteFunctions.js'
}
I know the system installed correctly because I can run workflows with webhooks without any errors, the only problem being when I try to use trigger nodes from external services, such as Trello. And before the question arise, yes, I've double checked the credentials, they're all correct, I can use them to create Trello Cards and Lists, but I cannot use it to Trigger events.
Any idea how to get around this?