Wordpress posting doesnt work

I just wanted to post to wordpress after the rss-feed is triggerd. the trigger works but i get this error from wordpress:
{
“response”: {
“status”: 401,
“body”: {
“code”: “rest_cannot_create”,
“message”: “Du bist mit deiner Benutzerrolle leider nicht berechtigt, Beiträge zu erstellen.”,
“data”: {
“status”: 401
}
}
},

It says the role of the user isnt allowed to do that, what is crap, because there is just this one role which is an admin.

What i already tried:
using an application password (same issue)
changeging the post-section to day and name (which was mention here that this should work) didnt change anything (therefore i changed it back, because obviously i get always the same error).

The connection itself (with userpassword or application) does work, because i get all my tags and stuff like that, but posting does not work.

any idea?

Have you tried creating a new account with already author or better rights?

Wordpress can be a pain in the… when it comes to setting up the authentication.

Kr Bram

just tried it, same issue :frowning:

i asked chatgpt a couple of times and it told me that i should change the .htaccess with the following line:

SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1

I have no idea what this does, i just did it because it told me to do it (something with ssl.!?). And it works! :wink:

So my tipp for other people is just ask chatgpt :wink:

1 Like

:+1: happy you found the solution!

Thanks for the TIP. It just helped me as well. :smiley: