With WooCommerce Shipping & Tax version 2.4.2 (and WC v8.4), the label response after a successful purchase results in a JSON parsing error because some of the items in labelsData have a null carrier_id while the attribute ShippingLabel.carrierID is expected to be non-nil. It's odd that there's only one product in the order/package, but more than one item in the labelsData.
Feel free to ping me if you can't repro in your store, I can invite you to the test store that I can reproduce.
Go to the orders tab
Tap on an order with one physical item/product that is eligible for shipping label
Tap to create a shipping label
Continue to fill out all the forms to purchase a label --> after a successful purchase (can print the label), the label isn't shown in order details even after pulling to refresh, and there's a JSON decoding error in the console
Describe the bug
With WooCommerce Shipping & Tax version 2.4.2 (and WC v8.4), the label response after a successful purchase results in a JSON parsing error because some of the items in
labelsData
have a nullcarrier_id
while the attributeShippingLabel.carrierID
is expected to be non-nil. It's odd that there's only one product in the order/package, but more than one item in thelabelsData
.Logging error:
The labels are shown in core:
To Reproduce Steps to reproduce the behavior:
Feel free to ping me if you can't repro in your store, I can invite you to the test store that I can reproduce.
Screenshots
https://github.com/woocommerce/woocommerce-ios/assets/1945542/aa792860-2caa-41a5-9117-e08910b79989
Expected behavior
The shipping label fetching should succeed after a successful purchase.
Isolating the problem (mark completed items with an [x]):
Mobile Environment Please include:
WordPress Environment