• I am getting this error when I try to create a label.

    Failed to create label: Message validation failed.
    Error Details: Input validation failed: Access Token [/labelRequest/hdr/accessToken]. Value cannot be null.
    Error message detail is not exist!

    Log:

        [body] => {
      "labelResponse" : {
        "hdr" : {
          "messageType" : "LABEL",
          "messageDateTime" : "2020-07-02T11:51:05+08:00",
          "messageVersion" : "1.4",
          "messageLanguage" : "en"
        },
        "bd" : {
          "responseStatus" : {
            "code" : "202",
            "message" : "Message validation failed.",
            "messageDetails" : [ {
              "messageDetail" : "Input validation failed: Access Token [/labelRequest/hdr/accessToken]. Value cannot be null."
            } ]
          }
        }
      }
    }

    Any suggestions?

    • This topic was modified 4 years, 8 months ago by cybsys.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shadi Manna

    (@shadim)

    Which country is your webshop based in?

    Thread Starter cybsys

    (@cybsys)

    Australia.

    Thread Starter cybsys

    (@cybsys)

    This has really pissed me off. I’ve lost a lot of customers because your plugin doesn’t work and no one here helps. I spent 12 hours straight updating to the latest WordPress and WooCommerce (had to migrate databases and update to PHP 7.4.7 which was a nightmare) because you broke the original plugin support.

    The FedEx plugin works perfect. Why can’t you fix yours yet alone actually ask proper debugging questions and not something stupid like “What country are you from”.

    You have the full error message. You are the API programmer so you should know exactly what that error is caused by and what it’s from.

    Plugin Author Shadi Manna

    (@shadim)

    The new version has a new DHL eCommerce integration, the old one has been retired. Can you confirm with your DHL representative that all of your credentials are correct in the settings?

    Thread Starter cybsys

    (@cybsys)

    Okay, I see. So there is the V1 API (which the old plugin versions use) and now you are using V2 of the API. I guess I cannot use my old credentials from V1 on V2.

    Based on your new information and also looking at the logs again I can see that the URL it is requesting is returning back with a credentials failure response.

    Anyway, I have since contacted my account manager and they said that WooCommerce doesn’t support the new version of the DHL plugin, so I’m not sure why they have told me that it’s not supported and I can’t get new (V2) API credentials.

    I will try and contact my account manager again tomorrow and force them to generate me new credentials (even if they think they won’t work). Such a pain.

    I appreciate the help Shadi.

    Plugin Author Shadi Manna

    (@shadim)

    If you don’t get anywhere with them I will try to get you a contact in AU on my end.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Message Validation Failed’ is closed to new replies.