1

I was tried below the code I am using OAuth 1.0 I am having Consumer Key,Consumer Secret, Access Token, Token Secret I'm getting response message: "A consumer having the specified key does not exist" anyone guides me for the right track

componentWillMount() {
    this.getProductDetail();
}

getProductDetail() {
    debugger
    let url = `http://13.233.175.20/index.php/rest/V1/products?fields=items&searchCriteria[pageSize]=1000`;     
    fetch(url, {
        method: 'GET',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
            "Authorization": 'OAuth oauth_consumer_key="m7eumn0mabhts4mlmggecrpikqg07u6l",
               oauth_token="4x1kjjkb0klj9mo4t88nv4xmulybszfi",
               oauth_signature_method="HMAC SHA1",oauth_timestamp="1550568244",
               oauth_nonce="JoNsTPLKHxA",oauth_version="1.0",
               oauth_signature="0b8SA2r4fHtV05G8yy%2BhYMqAH2M%3D"'
        },
    }).then((response) => response.json())
    .then((response) => {
        debugger;
        this.setState({
            productDetail: JSON.parse(response)
        });

    }).catch(function (error) {
            //Log an error here
        });
}

1 Answer 1

1

I had the similar error, I was using expired keys. Please try by Re-authorizing keys or creating new keys as:

From Magento admin dashboard

System->Extensions->Integrations->Add New Integration/Reauthorize

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.