Title: REST API Invalid Credential Issue
Last modified: June 19, 2020

---

# REST API Invalid Credential Issue

 *  Resolved [Anzi](https://wordpress.org/support/users/ansarul121/)
 * (@ansarul121)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/)
 * Hi Team
 * We are facing issue rest api connection lost issue
 * When 1 authorized it’s looking connected,
 * After connected the getting error message invalid credential you can have a look
   the snapshot: [https://prnt.sc/t2go2q](https://prnt.sc/t2go2q)
 * Can you please help me how to resolve the issue
 * I have already allowed authorization in the .htaccess
    <IfModule mod_rewrite.
   c> RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
   RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 * Still my issue not resolved

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13008228)
 * Hi there,
 * > I have already allowed authorization in the .htaccess
   >  <IfModule mod_rewrite.
   > c> RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 * This looks like JWT authorisation, correct? Which plugin do you use?
 * Kind regards,
 *  Thread Starter [Anzi](https://wordpress.org/support/users/ansarul121/)
 * (@ansarul121)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13009275)
 * Hi [@conschneider](https://wordpress.org/support/users/conschneider/)
 * We are not using any plugin it is directly connecting via API
 * still. not working getting error invalid credential
 *  Thread Starter [Anzi](https://wordpress.org/support/users/ansarul121/)
 * (@ansarul121)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13009311)
 * you can have a look at the log: [https://prnt.sc/t2rbm0](https://prnt.sc/t2rbm0)
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13023299)
 * Hi again,
 * > We are not using any plugin it is directly connecting via API
   >  still. not working
   > getting error invalid credential
 * So: [https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https](https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https)
   
   Why did you set the Rewrite rule then?
 * > RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 * > you can have a look at the log: [https://prnt.sc/t2rbm0](https://prnt.sc/t2rbm0)
 * In your screenshot I can see both `Oauth` and basic auth. Don’t use more than
   one, that will not work. Also do change the secret keys or next time obfuscate
   them in the screenshot.
 * In general your REST API seems to be down: [https://d.pr/i/pFIjLL](https://d.pr/i/pFIjLL)–
   I get a 404 on [http://bulkwholesale.com/wp-json/wc/v2](http://bulkwholesale.com/wp-json/wc/v2)
 * Kind regards,
 *  Thread Starter [Anzi](https://wordpress.org/support/users/ansarul121/)
 * (@ansarul121)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13023723)
 * Hi [@conschneider](https://wordpress.org/support/users/conschneider/)
 * I have checked REST API also working you can have a look: [https://www.bulkwholesale.com.au/wp-json/wc/v2](https://www.bulkwholesale.com.au/wp-json/wc/v2)
 * i will be really appreciate if you can help me how to resolve the issue
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13028491)
 * Hi again,
 * Yes, now it is loading(better), but I still get a bunch of errors: [https://d.pr/i/wVGZDW](https://d.pr/i/wVGZDW)
 * * Remove `wp-content/plugins/monit.php`.
    * Remove any additional constants from
   your `wp-config.php`.
 * Afterward check again. It must look like this: [https://d.pr/i/scfbeI](https://d.pr/i/scfbeI)
 * Kind regards,
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13058859)
 * Hi there,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 * Kind regards,

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘REST API Invalid Credential Issue’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [con](https://wordpress.org/support/users/conschneider/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-invalid-credential-issue/#post-13058859)
 * Status: resolved