Articles in this section

Troubleshoot WooCommerce

Overview

Various troubleshooting tips for WooCommerce.

Error: Unsuccessful - The remote server returned an error: (400) Bad Request.

If you save or test the connection and get this error, you may need to enable permalinks. To do this:

  1. In your WooCommerce account, select Settings, then select Permalinks.
  2. Under Common Settings, select Post name.
  3. Click Save changes.
  4. In your account, go to Settings, then select Platforms.
  5. Next to WooCommerce, select Settings.
  6. Scroll down and click Test to ensure it works.

You should get a successful result.

 

Error: Unsuccessful - woocommerce_api_authentication_error: Consumer key is missing. 

If you save or test the connection and get this error, you may need use the consumer key and secret as query string parameters. To do this:

  1. Log into DHL Express Commerce
  2. Go to Settings, then select Integrations
  3. Click Settings next to your WooCommerce integration 
  4. Select Use consumer key and secret as query string parameters
  5. Click Save

 

Error when integrating with WooCommerce or importing orders

If you get an Unsuccessful 404 error when trying to import orders or integrating, you may need to check your store URL.

  1. Check your domain URL with 'http://'.
  2. If your browser gets redirected to 'https://', test your integration with your consumer key and secret eg https://www.YOURSTORE.com/wc-api/v3/orders?consumer_key=XXXXXXX&consumer_secret=XXXXXXX 
  3. If you can see a list of orders, go back to the WooCommerce settings in DHL Express Commerce Settings > IntegrationsWooCommerce.
  4. In the URL field, change your URL to start with 'https://'.

    WooCommerce_404_error.jpg

  5. Test to ensure the connection works. You should get a successful result. If you continue to receive an error, please contact our support team

  6. If you get a successful result with the above test but the connection in DEC is stating unsuccessful please disable "Bot Fight Mode" with your CloudFlare in WooCommerce.

 

Error with WooCommerce writeback: The remote server returned an error: (405) Method Not Allowed

This may first appear as an issue when customers receive multiple order confirmation emails. Checking the Writeback log for a Printed order will confirm this. 

When the Writeback Fails and the log contains the error: The remote server returned an error: (405) Method Not Allowed. Try the following:

  1. Log into DHL Express Commerce
  2. Go to Settings, then select Integrations
  3. Click Settings next to your WooCommerce integration
  4. Set Order Update Method to PUT
  5. Save
  6. Navigate to Orders > Printed tab > Right Click on an Order > Update Selected Orders in Source System
  7. The writeback should retrigger for the selected orders. 

 

Error: Unsuccessful - The underlying connection was closed: The connection was closed unexpectedly.

If you test the connection and get this error, add the following content into the Custom Request Headers field:

user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36

 

MicrosoftTeams-image__5_.png

Error: Writeback failing with 401 error

This means that we do not have the proper authentication to update your orders. Try ticking the "Use consumer key and secret as query string parameters" option. This usually bypasses many of the security/firewall issues a server may be having with processing the authorisation.

If this is unsuccesful then please whitelist the following IP addresses: 

On port: 80, 443

104.40.200.176
104.40.201.109
104.40.204.252
104.40.205.110
104.40.205.29
125.236.193.73
13.69.68.2
137.117.153.170
193.56.253.248
20.105.232.45
20.23.166.17
20.4.158.209
20.4.158.227
20.4.158.230
20.4.158.245
20.4.158.253
20.76.77.136
20.76.77.236
20.76.78.100
20.76.78.70
20.76.78.77
20.76.79.126
20.76.79.131
20.76.79.133
20.76.79.138
20.76.79.145
20.76.79.161
20.76.79.162
23.97.146.237
13.70.65.114
13.70.65.145
13.70.67.84
13.70.71.54
13.70.71.83
13.70.72.35
13.73.195.135
13.75.138.224
20.188.208.134
20.53.214.57
20.92.152.254
20.92.156.8
20.92.157.172
20.92.157.230
20.92.157.243
20.92.158.151
20.92.158.179
20.92.158.19
20.92.158.221
20.92.158.37
20.92.158.6
20.92.208.162
20.92.208.164
20.92.208.191
20.92.209.127
20.92.209.191
20.92.209.249
20.92.209.91
20.92.210.145
20.92.211.128
20.92.211.187
20.92.211.217
20.92.211.225
52.147.2.39
52.147.2.6
52.147.24.109
52.147.29.26
52.147.3.4
52.147.4.3
52.187.229.183
52.187.231.76
89.44.10.247
50.85.72.9
82.26.106.4

Error: Writeback failing with 403 error

This means we do not have the proper permissions to update your orders in your store. Make sure the API key has both read and write permissions. 

Also ensure that the user you have assigned is a stand alone user with admin permissions. 

 

Was this article helpful?
0 out of 4 found this helpful