Skip to content

Error synchronizing orders (Swift.DecodingError) on shipping lines > taxes > ID #7842

@jaclync

Description

@jaclync

Describe the bug
Reported in 5619256-zd-woothemes
The app wasn't able to load orders because of the following error:

<> Mapping Error: typeMismatch(Swift.Int64, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 4", intValue: 4), CodingKeys(stringValue: "shipping_lines", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "taxes", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "id", intValue: nil)], debugDescription: "Expected to decode Int64 but found a string/data instead.", underlyingError: nil))

The order's shipping lines > taxes > id is expected to be an int, but an empty string is returned instead.

Mobile Environment
Please include:

  • WooCommerce iOS version: 10.5.0.1

List of active plugins

Requested SSR if the plugin conflict testing doesn't work.

``` | Terms & Conditions Connector of IT-Recht Kanzlei |   |   | ✖️️   | Contact Form 7 |   |   | ✖️️   | CookieYes \| GDPR Cookie Consent |   |   | ✖️️   | Disable Comments |   |   | ✖️️   | Facebook for WooCommerce |   |   | ✖️️   | FameTheme Demo Importer |   |   | ✖️️   | Jetpack |   |   | ✖️️   | Klarna Payments for WooCommerce |   |   | ✖️️   | OnePress Plus |   |   | ✖️️   | Page Builder by SiteOrigin |   |   | ✖️️   | German Market |   |   | ✖️️   | WooCommerce PayPal Payments |   |   | ✖️️   | WooCommerce Product Stock Alert |   |   | ✖️️   | WooCommerce Shipping & Tax |   |   | ✖️️   | WooCommerce
</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions