Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonce verification failed #22876

Closed
DastanIqbal opened this issue Feb 27, 2019 · 2 comments
Closed

Nonce verification failed #22876

DastanIqbal opened this issue Feb 27, 2019 · 2 comments

Comments

@DastanIqbal
Copy link

DastanIqbal commented Feb 27, 2019

Hi I am getting this Nonce verfication failed, all api's working fine, I am only facing issue when signing up new customer, existing customer can login with no issue , Just only sign up. seeking some help to resolve this issue.

Request
https://www.example.com/wp-json/wc/v2/customers?consumer_key=ck_consumer_key&consumer_secret=cs_consumer_secret

Body
{"email":"john.doe@example.com","first_name":"John","last_name":"Doe","username":"john.doe","password":"Pas$w0rd","billing":{"first_name":"John","last_name":"Doe","company":"","address_1":"969 Market","address_2":"","city":"San Francisco","state":"CA","postcode":"94103","country":"US","email":"john.doe@example.com","phone":"(555) 555-5555"},"shipping":{"first_name":"John","last_name":"Doe","company":"","address_1":"969 Market","address_2":"","city":"San Francisco","state":"CA","postcode":"94103","country":"US"}}

Response:
{"code":"nonce_verification_failed","message":"Nonce verification failed","data":{"status":400}}

@mikejolley
Copy link
Member

This is working my end.

insomnia wc rest api - products 2019-02-27 10-43-14

What I think may be happening is a plugin is injecting validation logic, checking for a nonce. You need to identify which plugin is responsible and ask the author to exclude REST API requests from the validation since no nonce is sent with API requests.

Thanks

@DastanIqbal
Copy link
Author

@thanks Mike, that I am trying to to figure out which plugin, if you got any tips then please comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants