If we can't connect to WooCommerce, please review the following guidelines.
A firewall is blocking access to the WooCommerce site
Your server might have configured a firewall or some other IP based filtering. If this the case you'll likely see an error stating any of the following:
java.lang.RuntimeException: Remote error: java.net.ConnectException: Connection timed out
java.lang.RuntimeException: Remote error: java.net.ConnectException: Connection refused (Connection refused)
To resolve, please whitelist the IPs of our Production servers: (see here for full list http://traderunnersupport.omnivore.com.au/support/solutions/articles/17000075309-trade-runner-ip-addresses )
To resolve, please whitelist the IPs of our Production servers:
The above errors might also occur if the protocol (http or https) is wrong, for instance your server can only do http but the endpoint is entered as https, or vice versa.
Cannot correctly locate the WooCommerce REST API endpoint (API endpoint)
Is your registered API endpoint correct and publicly visible. If you see the following message then we cannot connect to your WooCommerce site.
Can't connect to WooCommerce API at https://...
We have a couple of options if the URL is wrong:
* If you already have an account and the URL has changed please contact support and we can update the value.
* If you are a new user you will need to uninstall and reinstall the plugin, before your first connection you can enter the correct URL.
Invalid SSL certificate
If the endpoint is secure, ie uses https, make sure your SSL certificate is valid. A self-signed certificate is usually not enough.
An easy method to check the SSL certificate is to use the Qualys SSL Server Test
Pay attention to expiration date and chain issues.
Changes to your WooCommerce Store or Hosting
Have you updated Wordpress, WooCommerce or your hosting then your connection broke? This can happen sometimes, the URL of your API endpoint could have changed, try the following patterns:
You need to replace "https://your-site.com" with the base URL of your site. To test each pattern:
- go to Settings > Feed > General
- record the original API Endpoint URL
- change your API Endpoint URL
- click "Update" at the bottom of the page
- click "Test Connection"
- If you see "Connection to WooCommerce API is successful" then that pattern worked and you are done, please try the above patterns in order.
Existing Users: How to test we can connect to WooCommerce
To test the connection between WooCommerce and Trade Runner, go to 'Settings' - 'Feeds' - 'General' then click the 'Test Connection' button. If we can connect to your WooCommerce store, you should see a confirmation message: Connection to WooCommerce API is successful.