I am having trouble with verification of woocommerce REST api credentials, with a wordpress server that is hosted on the same machine in another docker container. So n8n should be trying to access the site via LAN connection.
The site can be accessed normally through the browser and I have entered both keys as generated. but it still throws an error while trying to validate the credentials
I have tried with and without http:// for the url.
Once installed, I’ve activated WooCommerce, configured it with a single product, created a WooCommerce, homepage then obtained the required credentials:
And this would indeed be the problem you suspect. As per WooCommerce REST API Documentation - WP REST API v3 you would need to use OAuth 1.0a to authenticate with Non-HTTPS/SSL WooCommerce instances. This is not currently supported by n8n’s WooCommerce node, so you’d indeed either need to set up SSL here.
Oh my god, Thank you so much for going through all that trouble!!
That should be more than sufficient to support the SSL case , I will try to SSL the dev server. since they are on the same host machine it should work.
Small update, Ive managed to get SSL with self signed certificates and can access the wordpress container via HTTPS on the host machine following this guide: HERE
Using etc/hosts file and nginx i was able to access the site using a made up domain “chemex.dev”
However N8N still could not connect with API key.
Upon further investigation other machines cannot connect to Chemex.dev over the LAN, I guess its only available on the host machine. Will need to find another way to enable SSL where other machines on the network can connect over LAN.