App reviews, troubleshooting, and recommendations
I'm getting some very strange responses from the Shopify API and the errors are not helpful.
Example 1: Enter an address
The data - this comes from an address lookup api service so it is valid:
await api.applyShippingAddressChange({
type: 'updateShippingAddress',
address: {
address1: "165 ASHRIDGE RD",
city: "DARRA",
countryCode: "AU",
provinceCode: "QLD",
zip: "4076"
}
}
Error response:
{
errors: {
0: {
field: "address1",
message: "Enter an address"
}
}
}
As you can see, the data does contain a valid address1 value.
Example 2: Enter a valid ZIP / postal code for Victoria
The data - this comes from an address lookup api service so it is valid:
await api.applyShippingAddressChange({
type: 'updateShippingAddress',
address: {
address1: '154 AUTUMN ST',
city: 'GEELONG WEST',
countryCode: 'AU',
provinceCode: 'VIC',
zip: '3218'
}
}
That is a valid postcode for Victoria:
https://postcodes-australia.com/state-postcodes/vic
Interestingly in the both cases the city and province code are updating.
Things I have tried:
Can anyone at Shopify shed some light on this please. I really need to resolve these errors.
Thanks
Greg
Thanks
Greg
Solved! Go to the solution
This is an accepted solution.
I resolved this by switching over the REACT framework and upgrading the component libraries
This is an accepted solution.
I resolved this by switching over the REACT framework and upgrading the component libraries
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024