Open agramichael opened 2 years ago
I am pretty confident this happens because create_instances_from_response
assumes the class name is the key in the response, but in this case the key is addresses
and not customer_addresses
.
Edit:
I have confirmed this is the root cause of the issue locally.
Copying the content of ShopifyAPI::CustomerAddress
but renaming it ShopifyAPI::Address
makes the response get returned properly.
Seeng exactly the same issue on both 10.0.3 and 10.1.0
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days.
We are closing this issue because it has been inactive for a few months. This probably means that it is not reproducible or it has been fixed in a newer version. If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.
If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines
Thank you!
This is still unresolved.
And so what's the resolution here? I'm having this issue with AssignedFulfillmentOrder
https://github.com/Shopify/shopify-api-ruby/pull/1208 should address this
@Trimakas I'll look into implementing something similar for AssignedFulfillmentOrder
Issue summary
CustomerAddress.all
doesn't return results, using Rest API with a private app.Expected behavior
Returns list with customer's addresses.
Actual behavior
Returns empty list for a customer with an address.
Steps to reproduce the problem
ShopifyAPI::CustomerAddress.all(customer_id: x)
and receive[]
ShopifyAPI::Customer.find(id: x).addresses
and confirm the customer actually has an address.Specifications
shopify_api
version: 10.1.0