Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orders metadata can contains objects. #6

Open
Jackymancs4 opened this issue Dec 9, 2024 · 1 comment
Open

Orders metadata can contains objects. #6

Jackymancs4 opened this issue Dec 9, 2024 · 1 comment

Comments

@Jackymancs4
Copy link

Hello @hiscaler

I have found that some meta-data in the order object can contain objects like the following:

      {
         "id": 1678618,
         "key": "mailchimp_woocommerce_gdpr_fields",
         "value": {
            "9abd106c92": "0"
         }
      },
      {
         "id": 1678619,
         "key": "mailchimp_woocommerce_is_subscribed",
         "value": "1"
      },

When retrieving the list of orders it fails, with the following error:

[]entity.Order: entity.Order.MetaData: []entity.MetaData: entity.MetaData.Value: fuzzyStringDecoder: not number or string, error found in #10 byte of ...|\",\"value\":{\"9abd106c|..., bigger context ...|\"key\":\"mailchimp_woocommerce_gdpr_fields\",\"value\":{\"9abd106c92\":\"0\"}},{\"id\":1682528,\"key\":\"wt_pklist|..."

Do you have ideas to fix this?

Thank you.

@hiscaler
Copy link
Owner

Change type to any? but is not friendly for client user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants