Title: API error when printing label
Last modified: August 5, 2022

---

# API error when printing label

 *  [kunzi](https://wordpress.org/support/users/kunzi/)
 * (@kunzi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/api-error-when-printing-label/)
 * I have sandbox mode enabled and connection test is successful with sandbox credentials.
   However when printing label in order management I get this error.
 * API error: {“status”:502,”title”:”Response405WithoutAllowHeader”,”detail”:”protocol.
   http.Response405WithoutAllowHeader.”}
 * And here is log file content:
 * 06-27-2022 @ 13:00:10 – Response: Array
    ( [status] => 502 [headers] => Array([
   Date] => Mon, 27 Jun 2022 10:00:10 GMT [Content-Type] => application/problem+
   json [Content-Length] => 110 [Correlation-Id] => be19931c-e40d-4243-b38c-3b1f0cc99d86[
   Content-Language] => en [Access-Control-Allow-Origin] => * [Vary] => Origin [
   Access-Control-Allow-Methods] => GET,OPTIONS [Access-Control-Max-Age] => 7200[
   Access-Control-Allow-Headers] => Accept-Encoding,Accept-Language,Accept,Authorization,
   Cache-Control,Content-Language,Content-Length,Content-Type,Correlation-Id,DHL-
   API-Key,Expires,Host,Last-Modified,Origin,Pragma,Referer,User-Agent,X-Forwarded-
   For,X-Forwarded-Port,X-Forwarded-Proto,X-Requested-With [Access-Control-Expose-
   Headers] => Cache-Control,Content-Encoding,Content-Language,Content-Length,Content-
   Type,Correlation-Id,Expires,Last-Modified,Pragma,Referrer-Policy,Strict-Transport-
   Security,Vary,X-Content-Type-Options,X-DNS-Prefetch-Control,X-Frame-Options,X-
   XSS-Protection )
 *  [body] => {“status”:502,”title”:”Response405WithoutAllowHeader”,”detail”:”protocol.
   http.Response405WithoutAllowHeader.”}
    [cookies] => Array ( )
 * )

Viewing 1 replies (of 1 total)

 *  [dhlsupport_yago](https://wordpress.org/support/users/shevasa/)
 * (@shevasa)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/api-error-when-printing-label/#post-15898171)
 * Hi there,
    Can you make sure that your website has https enabled and https works
   fine with no error, if not, please try to enable https and try.
 * Thanks,
    dhlsupport_yago

Viewing 1 replies (of 1 total)

The topic ‘API error when printing label’ 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/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 2 replies
 * 2 participants
 * Last reply from: [dhlsupport_yago](https://wordpress.org/support/users/shevasa/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/api-error-when-printing-label/#post-15898171)
 * Status: not resolved