Title: Response Error: Bad Request
Last modified: May 7, 2024

---

# Response Error: Bad Request

 *  Resolved [psorn](https://wordpress.org/support/users/psorn/)
 * (@psorn)
 * [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/)
 * Hi there,
 * Currently, it is not possible to create labels (Response Error: Bad Request).
   No changes to yesterday. Is this a plugin or API error?
 * Please advise, thank you!

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

 *  [Edris Ibrahim](https://wordpress.org/support/users/wpcentric/)
 * (@wpcentric)
 * [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/#post-17737375)
 * Hi [@psorn](https://wordpress.org/support/users/psorn/)
 * The Issue:
   We were facing the same issue, the issue was nonce was not verifying
   correctly resulting in error “Bad Request”The Fix:In this file “wp-content/plugins/
   dhl-for-woocommerce/assets/js/pr-dhl.js” on line 299
 * Change this
 *     ```wp-block-code
               var data = {
                   action:                   'wc_shipment_dhl_gen_label',
                   order_id:                 woocommerce_admin_meta_boxes.post_id,
               };
       ```
   
 * With this
 *     ```wp-block-code
               var data = {
                   action:                   'wc_shipment_dhl_gen_label',
                   order_id:                 woocommerce_admin_meta_boxes.post_id,
                   pr_dhl_label_nonce:       $( '#pr_dhl_label_nonce' ).val()
               };
       ```
   
 *  Thread Starter [psorn](https://wordpress.org/support/users/psorn/)
 * (@psorn)
 * [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/#post-17737450)
 * [@wpcentric](https://wordpress.org/support/users/wpcentric/) Thank you!
 * Currently, it seems to work again but good to know.
 *  [Jannis Brandt](https://wordpress.org/support/users/jannisbrandt/)
 * (@jannisbrandt)
 * [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/#post-17737579)
 * unfortunately the fix doesn’t work for me, do you have any other ideas?
 *  [Edris Ibrahim](https://wordpress.org/support/users/wpcentric/)
 * (@wpcentric)
 * [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/#post-17738200)
 * [@jannisbrandt](https://wordpress.org/support/users/jannisbrandt/) 
   Undo the 
   previously suggested changes, if they are not working for you and try following
   instead:In this file “wp-content/plugins/dhl-for-woocommerce/includes/abstract-
   pr-dhl-wc-order.php” at line 298 Change this:`check_ajax_referer( 'create-dhl-
   label', 'pr_dhl_label_nonce' );`With this:`//check_ajax_referer( 'create-dhl-
   label', 'pr_dhl_label_nonce' );`
    -  This reply was modified 2 years ago by [Edris Ibrahim](https://wordpress.org/support/users/wpcentric/).
 *  Plugin Author [Abdalsalaam Halawa](https://wordpress.org/support/users/abdalsalaam/)
 * (@abdalsalaam)
 * [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/#post-17739437)
 * Hello [@psorn](https://wordpress.org/support/users/psorn/), [@jannisbrandt](https://wordpress.org/support/users/jannisbrandt/)
   
   since its back to work with you it seems it was API’s outage but can you send
   the plugin logs to our support email so we can check what is going wrong?[@wpcentric](https://wordpress.org/support/users/wpcentric/)
   I don’t recommend to disable the ajax referer check,thank you

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

The topic ‘Response Error: Bad Request’ is closed to new replies.

 * ![](https://ps.w.org/dhl-for-woocommerce/assets/icon.svg?rev=1777040)
 * [DHL Shipping Germany for WooCommerce](https://wordpress.org/plugins/dhl-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/dhl-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/dhl-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dhl-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dhl-for-woocommerce/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Abdalsalaam Halawa](https://wordpress.org/support/users/abdalsalaam/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/response-error-bad-request/#post-17739437)
 * Status: resolved