Code Monkey home page Code Monkey logo

Comments (6)

Joffcom avatar Joffcom commented on August 29, 2024 1

Hey @datdamnzotz

That is interesting it looks like in n8n you are seeing the authorization failed message and Wordpress is also showing the same in the request with the 401 status.

I wonder if the api has changed or if fetching users needs a special user account now.

I will take a look over the weekend or on Monday.

from n8n.

datdamnzotz avatar datdamnzotz commented on August 29, 2024 1

I'm a dork. User name must be the wordpress users name not the one given to the application name (they can be diffrent)

from n8n.

datdamnzotz avatar datdamnzotz commented on August 29, 2024

Sorry forgot to note this is Wordpress Version 6.4.3

Another interesting thing is testing from chrome

/wp-json/wp/v2/users

Doesn't' require authentication at all, it returns:

[{"id":1,"name":"admin","url":"http:\/\/ ip :88","description":"","link":"http:\/\/ ip :88\/author\/john\/","slug":"john","avatar_urls":{"24":"http:\/\/2.gravatar.com\/avatar\/86328d87f4eefba2fb22f84f05801c17?s=24&d=mm&r=g","48":"http:\/\/2.gravatar.com\/avatar\/86328d87f4eefba2fb22f84f05801c17?s=48&d=mm&r=g","96":"http:\/\/2.gravatar.com\/avatar\/86328d87f4eefba2fb22f84f05801c17?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http:\/\/ ip :88\/wp-json\/wp\/v2\/users\/1"}],"collection":[{"href":"http:\/\/ ip :88\/wp-json\/wp\/v2\/users"}]}}]

where

/wp-json/wp/v2/users?who=authors&per_page=10&page=1

returns:

{"code":"rest_forbidden_who","message":"Sorry, you are not allowed to query users by this parameter.","data":{"status":401}}

So it is asking for authentication...

from n8n.

datdamnzotz avatar datdamnzotz commented on August 29, 2024

Looks like update post isn't working either...

image

from n8n.

Joffcom avatar Joffcom commented on August 29, 2024

Looks like a similar error, Wordpress is saying you are not allowed to do it for some reason.

from n8n.

Joffcom avatar Joffcom commented on August 29, 2024

Thanks for the update that is good to know.

from n8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.