Wordpress Login Credentials

Describe the problem/error/question

Wordpress credentials not working. I’ve correctly inputted the user and password for my administer and it says successfully synced but when I try to run any Wordpress action through the Wordpress node I get a 401 error.

What is the error message (if any)?

Error code

401

Please share your workflow

Share the output returned by the last node

{
“errorMessage”: “Authorization failed - please check your credentials”,
“errorDescription”: “Sorry, you are not allowed to create posts as this user.”,
“errorDetails”: {
“rawErrorMessage”: [
“401 - {"code":"rest_cannot_create","message":"Sorry, you are not allowed to create posts as this user.","data":{"status":401}}”
],
“httpCode”: “401”
},
“n8nDetails”: {
“nodeName”: “Wordpress”,
“nodeType”: “n8n-nodes-base.wordpress”,
“nodeVersion”: 1,
“resource”: “post”,
“operation”: “create”,
“time”: “8/14/2024, 3:57:42 PM”,
“n8nVersion”: “1.47.0 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: Authorization failed - please check your credentials”,
" at Object.requestWithAuthentication (/opt/render/project/src/packages/core/src/NodeExecuteFunctions.ts:1908:10)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at Object.requestWithAuthentication (/opt/render/project/src/packages/core/src/NodeExecuteFunctions.ts:3242:11)“,
" at Object.wordpressApiRequest (/opt/render/project/src/packages/nodes-base/nodes/Wordpress/GenericFunctions.ts:42:10)”,
" at Object.execute (/opt/render/project/src/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts:188:22)“,
" at Workflow.runNode (/opt/render/project/src/packages/workflow/src/Workflow.ts:1379:8)”,
" at /opt/render/project/src/packages/core/src/WorkflowExecute.ts:1059:27",
" at /opt/render/project/src/packages/core/src/WorkflowExecute.ts:1763:11"
]
}
}

Information on your n8n setup

Node type

n8n-nodes-base.wordpress

Node version

1 (Latest)

n8n version

1.47.0 (Self Hosted)

Time

8/14/2024, 3:57:42 PM

Stack trace

NodeApiError: Authorization failed - please check your credentials at Object.requestWithAuthentication (/opt/render/project/src/packages/core/src/NodeExecuteFunctions.ts:1908:10) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.requestWithAuthentication (/opt/render/project/src/packages/core/src/NodeExecuteFunctions.ts:3242:11) at Object.wordpressApiRequest (/opt/render/project/src/packages/nodes-base/nodes/Wordpress/GenericFunctions.ts:42:10) at Object.execute (/opt/render/project/src/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts:188:22) at Workflow.runNode (/opt/render/project/src/packages/workflow/src/Workflow.ts:1379:8) at /opt/render/project/src/packages/core/src/WorkflowExecute.ts:1059:27 at /opt/render/project/src/packages/core/src/WorkflowExecute.ts:1763:11

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 @Roarshack_Studios,

a similar problem was discussed here:

Did you set up an application password as mentioned there?

best,

Jon

1 Like

Thanks for the reply. I went through the 2-step authentication request and created an application password but was still getting the 401 error. I went into my user settings in my website and came across this

I generated an application password here and it worked!

3 Likes

We should update our documentation to mention this if it isn’t there already. I will take a look in the morning to see if it is already there.

Not related. I had done this already. I had gotten the password and the issue was with a Cache or something like that the blog support engineer found in our case.

Sure, ultimately, it was a different solution in your case.

But the steps for troubleshooting were laid out nicely in that post of yours, that’s why I referenced it. =)

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