-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
SerializationException: The value "parent" cannot be parsed as a type "Boolean" #722
Comments
Thanks for your ongoing development of this library! |
I don't get this error on local testing, do you mind uploading the returned json details so I can check? |
Thanks for looking into it. I've uploaded only an excerpt of the json, please let me know if you need the whole thing. I believe this is the culprit:
So manage_stock isn't boolean, it has the value "parent", probably because the SKU I'm requesting is a product variant which shares stock with the parent: The reason why it works using the product slug instead of SKU is probably because the product slug refers to the parent while the SKU refers to a child variant of that parent. |
I have the same problem with Variation products. |
It's defined as bool in WC's document, however when in variation products, it could be a string with value "parent". Will fix this in the next version. |
@dartrax This is fixed in version 0.8.6. |
Perfect! Confirming it's fixed now. |
This works:
This does not work:
In my test both calls to GetAll should deliver the same product (my-product-slug is the slug of the product with the sku 12345678)
The error is:
The text was updated successfully, but these errors were encountered: