Hi, i’m trying to connect to woocommerce but i have always the same error message :
Error: The WooCommerce credentials are not valid!
at Object.woocommerceApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/WooCommerce/GenericFunctions.js:30:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I checked several times, I entered the right credential (Consumer Key, Consumer secret), my Rest API is on write and read mode.
Do you have any idea where the problem is ?
Thank you
@jan hi! Faced the same problem, my workflow seemed to work fine, credentials were assigned properly, then suddenly, my Woocommerce Credentials are not valid anymore.
any suggestion on how to troubleshoot this problem? thanks! looking forward for your response!
I encountered this very issue yesterday and spent the whole day debugging it.
The reason why it isn’t working is most likely due to PHP-FastCGI which is altering the request to the WooCommerce REST-API. Outcome is Authorization Error 401.
Possible elegant solution:
RewriteCond %{HTTP:Authorization} ^(.)
RewriteRule ^(.) - [E=HTTP_AUTHORIZATION:%1]
Add this to your .htaccess (WP main folder) below RewriteEngine On
I just became mad about this problem I had myself, but I just found a solution that works perfectly !
Just open your .htaccess and add this below “RewriteEngine on” →
RewriteRule ^index.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Worked perfectly for me ! Hope it can save some of you.