Use mattermost

Hey everybody, I have some mistakes with mattermost post message

the error is : ERROR: The resource you are requesting could not be found, Request failed with status code 404

and the stack is:

NodeApiError: The resource you are requesting could not be found
    at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:919:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Object.post (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/actions/message/post/execute.js:64:26)
    at Object.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mattermost/v1/actions/router.js:53:32)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:28)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:585:53

Please share the workflow

Information on your n8n setup

  • n8n version:
  • **Database SQLite
  • **Running n8n via Docker

Hi @directline, welcome to the community :tada:

Seeing you are getting a Not Found error, is there a chance the base URL in your Mattermost credentials ends with a slash?

n8n would simply join a number of strings to build a request URL and it seems posting a message would fail with a 404 error if is a double slash somewhere along the way. Other nodes take this account account and remove additional slashes where needed, but it seems the Mattermost one would not.

So, you would need to make sure there is no trailing slash in your base URL:

Could you check this on your end?

1 Like

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