• Resolved Bob

    (@orionlearn)


    Hi, I logged into USPS and got my user api and secret. Loaded them into your app and get OK. Then my cart page showed an error and no rates. Broke my site. So I deleted the REST API and all was okay again. There was a notice to copy the error. see below

    Array
    (
    [apiVersion] => /prices/v3
    [error] => Array
    (
    [code] => 400
    [message] => OASValidation OpenAPI-Spec-Validation-Domestic-Prices with resource oas://domestic-prices-v3.yaml: failed with reason: [ERROR - Instance failed to match all required schemas (matched only 1 out of 2): [/allOf/0: Object has missing required properties ([height,length,width])]ERROR - Object has missing required properties ([height,length,width]): []]
    [errors] => Array
    (
    [0] => Array
    (
    [title] => OASValidation OpenAPI-Spec-Validation-Domestic-Prices with resource "oas://domestic-prices-v3.yaml": failed with reason: "[ERROR - Instance failed to match all required schemas (matched only 1 out of 2): [/allOf/0: Object has missing required properties (["height","length","width"])]
    ERROR - Object has missing required properties (["height","length","width"]): []]"
    [detail] =>
    )

                )
    
        )

    )

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Piotrek Bodera

    (@nerdontour)

    Hi @orionlearn, thanks for reaching out. I’m sorry to hear you had issues with your site.

    The error suggests that the request body or object you supplied to the API did not include the required properties: heightlength, and width.

    Please double-check if all your products have the specified dimensions and weights. Additionally, please know that the REST API requires you to provide the default dimensions in Package Settings:

    After completing these steps, please verify if the issue has been resolved.

    Kind regards,

    Plugin Support Piotrek Bodera

    (@nerdontour)

    I’m marking this topic as resolved for now. If you’d like to ask about anything else – please open a new thread.

    Kind regards,
    Piotrek

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

The topic ‘REST API Error’ is closed to new replies.