Erreur 404 not found sur le noeud HTTP Request

Hello everyone,

Can you help me? I can’t create the connection on WordPress, it gives me a 404 error when creating the credential.

Error : Couldn’t connect with these settings

Request failed with status code 404

![image|690x366](upload://pXy9CrCafkZor4RzfEVLYxnxxx1.png)

Information on your n8n setup

  • n8n version: 1.16.0
  • Running n8n via n8n cloud

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey,

please share the workflow (or at least a screenshot) properly. Currently no one can see what the problem might be … and obviously not help you.

I can confirm your error. I tried with a demo account for wordpress.com and it does not connect.

While reading why it might now work - it looks like to me that the credentials file expects something to work with this:

test: ICredentialTestRequest = {
		request: {
			baseURL: '={{$credentials?.url}}/wp-json/wp/v2',
			url: '/users',
			method: 'GET',
			skipSslCertificateValidation: '={{$credentials.allowUnauthorizedCerts}}',

coming from n8n/packages/nodes-base/credentials/WordpressApi.credentials.ts at master · n8n-io/n8n · GitHub

This will work if you have your wordpress installed manually - but if you are trying to use wordpress.com … they seem to have changed the API to a different url - one can read here about it

A developer with enough time should took a look at this.

Thank you for your answer but where are we going to implement this code?

Hey,

this is nothing which you can include - this is a hint for a developer or maintainer of the N8N project. I believe this is broken and needs to be fixed by someone with a bit of time at their hands.
Sorry for the confusion.