[go: nahoru, domu]

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

401 Unauthorized #19

Closed
hmoshfegh opened this issue Mar 29, 2020 · 5 comments
Closed

401 Unauthorized #19

hmoshfegh opened this issue Mar 29, 2020 · 5 comments

Comments

@hmoshfegh
Copy link
hmoshfegh commented Mar 29, 2020

hi, i have this problem with wooDroid. what i must to do?
please help me

        Woocommerce woocommerce = Woocommerce.Builder()
                .setSiteUrl("http://parstuts.ir")
                .setApiVersion(Woocommerce.API_V3)
                .setConsumerKey(ConstantValues.WOOCOMMERCE_CONSUMER_KEY)
                .setConsumerSecret(ConstantValues.WOOCOMMERCE_CONSUMER_KEY)
                .build();

[size=327 text={"code":"woocommerce_rest_authentication_error","message":"\\u062…]

D/OkHttp: {"code":"woocommerce_rest_authentication_error","message":"\u0627\u0645\u0636\u0627\u0621 \u0646\u0627\u0645\u0639\u062a\u0628\u0631 \u0627\u0633\u062a - \u0627\u0645\u0636\u0627\u06cc \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0645\u0637\u0627\u0628\u0642\u062a \u0646\u062f\u0627\u0631\u062f.","data":{"status":401}}
    <-- END HTTP (327-byte body)
D/OkHttp: <-- 401 Unauthorized http://parstuts.ir/wp-json/wc/v3/products
@gilokimu
Copy link
Owner

if you can slack or email me your keys, I can check on my end if the setup is fine

@hmoshfegh
Copy link
Author

if you can slack or email me your keys, I can check on my end if the setup is fine

i email the keys for you

@gilokimu
Copy link
Owner

I tried it on my phone and I was able to connect to your website. And the setup here looks fine. Other causes of authentication errors that I have observed have to do with having incorrect time set on the device that you are using. You can also check on that and revert

@hmoshfegh
Copy link
Author
hmoshfegh commented Mar 31, 2020 via email

@gilokimu
Copy link
Owner

Ah! I did not notice that as well. Such an easy thing to miss!

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