App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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