Describe the problem/error/question
When creating Mattermost credentials in self hosted n8n docker instance, I have a 400 HTTP error Bad request. In debug level log it does not show the HTTP request that fails. I have tried via curl and the Mattermost API v4 (Server 9.5.3) succeeds. The mattermost instance is another self-hosted one, different domain. Is there a way to have the HTTP request sended by n8n ? Axios have interceptors to log HTTP requests / response in debug level.
What is the error message (if any)?
2024-11-06T13:15:10.995Z | error | Bad request - please check your parameters
NodeApiError: Bad request - please check your parameters
at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1208:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2073:20)
at Object.apiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/transport/index.js:18:12)
at Object.apiRequestAllItems (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/transport/index.js:26:24)
at Object.getChannels (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/methods/loadOptions.js:11:26)
at DynamicNodeParametersController.getOptions (/usr/local/lib/node_modules/n8n/dist/controllers/dynamic-node-parameters.controller.js:25:20)
at handler (/usr/local/lib/node_modules/n8n/dist/decorators/controller.registry.js:93:24)
at /usr/local/lib/node_modules/n8n/dist/response-helper.js:105:26
{"file":"LoggerProxy.js","function":"exports.error"}
AxiosError: Request failed with status code 400
at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:19:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:599:11)
at IncomingMessage.emit (node:events:531:35)
at IncomingMessage.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1696:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/Axios.js:45:41)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at httpRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:769:18)
at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1189:16)
at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2073:20)
at Object.apiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/transport/index.js:18:12)
at Object.apiRequestAllItems (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/transport/index.js:26:24)
at Object.getChannels (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/methods/loadOptions.js:11:26)
at DynamicNodeParametersController.getOptions (/usr/local/lib/node_modules/n8n/dist/controllers/dynamic-node-parameters.controller.js:25:20)
at handler (/usr/local/lib/node_modules/n8n/dist/decorators/controller.registry.js:93:24)
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- **n8n version:1.66.0, idem with next or latest docker releases
- **Database (default: SQLite):PostgreSQL
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
- **Operating system:Linux