Skip to content

Shipping Labels: Print option should be disabled for outdated labels  #10158

Open
@itsmeichigo

Description

@itsmeichigo

Describe the bug
The print option is still available on the app when a shipping label is outdated. When tapping this button, an alert shows up saying there's an error previewing the label.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Orders tab.
  2. Select an old order with a shipping label created long ago. I'm not sure how long is enough, I got this issue with a label created 1 year ago.
  3. Notice the error alert saying there is an error with the preview.

Screenshots

Request to print the label fails with an error:

{
  "error" : "wcc_server_error_response",
  "message" : "Error: The WooCommerce Shipping & Tax server returned: Internal Server Error An internal server error occurred ( 500 )"
}

Expected behavior
The print option should be disabled like on the web:

Screenshot 2023-07-03 at 14 03 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: shipping labelsRelated to creating, ordering, or printing shipping labels.type: bugA confirmed bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions