question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

woocommerce_api_authentication_error","message":"Consumer Secret is invalid

See original GitHub issue

When using HTTPS in the API URL parameter below the authentication fails with the error"

“woocommerce_api_authentication_error”,“message”:“Consumer Secret is invalid”.

HTTP works fine.

Questions:

  • Any suggestions on how to troubleshoot this?
  • If this is a potential server side configuration issues, do you have any pointers on how to configure it correctly?
  • Could you give me an example of how to use query parameters instead? The WooCommerce REST API documentation hints at an example for servers that not properly parse the Authorization header, but it is actually missing.
API(
            url="https://kashalife.net/",
            consumer_key   ="ck_16c59a1a0693c2723928830da52a30640c2311fd",
            consumer_secret="cs_0b4e0f17741e024b31d0ef799257b972db473305",
            wp_api=False,
            verify_ssl=False,
            version="v3",
        )

Thanks - Christoph

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
claudiosanchescommented, Jun 22, 2016

@chbichsel Solved in version 1.2.0, now you just need to update and set your wrapper using the query_string_auth option, see example:

API(
    url="https://kashalife.net/",
    consumer_key="ck_16c59a1a0693c2723928830da52a30640c2311fd",
    consumer_secret="cs_0b4e0f17741e024b31d0ef799257b972db473305",
    wp_api=False,
    verify_ssl=False,
    version="v3",
    query_string_auth=True
)
0reactions
chbichselcommented, Jun 23, 2016

Sweet. Thanks!

From: Claudio Sanches [mailto:notifications@github.com] Sent: Wednesday, June 22, 2016 4:35 PM To: woothemes/wc-api-python wc-api-python@noreply.github.com Cc: chbichsel chbichsel@msn.com; Mention mention@noreply.github.com Subject: Re: [woothemes/wc-api-python] woocommerce_api_authentication_error",“message”:"Consumer Secret is invalid (#16)

@chbichselhttps://github.com/chbichsel Solved in version 1.2.0, now you just need to update and set your wrapper using the query_string_auth option, see example:

API(

url="https://kashalife.net/",

consumer_key="ck_16c59a1a0693c2723928830da52a30640c2311fd",

consumer_secret="cs_0b4e0f17741e024b31d0ef799257b972db473305",

wp_api=False,

verify_ssl=False,

version="v3",

query_string_auth=True

)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/woothemes/wc-api-python/issues/16#issuecomment-227908665, or mute the threadhttps://github.com/notifications/unsubscribe/AR4SzYKP-Bus8kZ1AMk94IJ8Uu6_yDcJks5qOca7gaJpZM4I7dND.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create secret in kubernetes: "Secret is invalid
I found my issue. I was trying to create the Secret object using. Yaml.LoadAllFromString(). which was double encoding my .dockerconfigjson value.
Read more >
Error create failed to create Secret invalid metadata.name ...
How to fix - Error create failed to create Secret invalid metadata.name Invalid value DNS-1123 subdomain must consist of lower case alphanumeric ...
Read more >
Fixing -Error create failed to create Secret invalid metadata ...
How to fix - Error create failed to create Secret invalid metadata.name Invalid value DNS-1123 subdomain must consist of lower case ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found