• Resolved markbautista

    (@markbautista)


    Hi Sir,

    I’m having a problem with the Nonce,. I’m Creating a new User via POST in Postman, but im getting this error response.

    Invalid access, unverifiable ‘nonce’ value.
    "error": "Invalid access, unverifiable 'nonce' value. Use the 'get_nonce' Core API method. "

    I do get the nonce request:
    https://localhost/api/get_nonce/?controller=user&method=register
    and give me result
    {"status":"ok","controller":"user","method":"register","nonce":"1......."}
    But Im always getting an error. But when i paste the request via URL i can create user but not in the Postman.

    Here’s the parameters i use to pass a data to Create User:

    insecure=cool
    username=johndoe
    [email protected]
    last_name=Doe
    first_name=John
    user_pass=143johncalub
    nonce=5XXXXXXX
    display_name=JohnDoe
    meta_key=member_id
    meta_value=1XXXXX

    Any ideas Sir?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    try with Advanced REST Client https://chrome.google.com/webstore/detail/advanced-rest-client/

    Postman should also work but sometimes you are not using the correct options in Postman

    Thread Starter markbautista

    (@markbautista)

    Hi Sir Ali,

    I also try Advanced REST Client but it’s giving me error.

    {
    "status": "error",
    "error": "You must include 'username' var in your request. "
    }

    Thank you very much for fast response.

    Thread Starter markbautista

    (@markbautista)

    I don’t know where the error exist. When all the parameters are given to a POST Request.

    Plugin Author Ali Qureshi

    (@parorrey)

    I think you are sending the request incorrectly.

    Because, if it works directly in the browser window, it means problem is in sending format or method.

    Thread Starter markbautista

    (@markbautista)

    Hi Sir Ali,

    I think im sending it wrong, actually this is my 1st attempt using WP-REST and using Postman as a Client. If that so, Can you help me how the proper way sending the request?

    Because right now I’m setting it like this at postman?
    1. Method – POST
    2. The Url is Set to – https://xxxxxxxx.com/api/user/register/
    3. There’s no Auth
    4. Headers are Empty
    5. Body (form-data) parameter is – (insecure, username, email, display_name, last_name, first_name, user_pass, meta_key, meta_value and nonce)

    Am I in the wrongway?

    Best Regards Sir Ali

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid access, unverifiable ‘nonce’ value.’ is closed to new replies.