x-request-id:35538e34-faaf-49d9-9e8a-4b54665f5211-1734451478
Hello,
We are switching from REST to GraphqlAPI and I have seen some strange behaivor.
By mutating the order’s shipping address and an extra order.email or order.phone we get a “Too many attempts” error, which is not expected. Here are the details:
Query: mutation orderUpdate($input: OrderInput!) {
orderUpdate(input: $input) {
order {
id
email
note
shippingAddress {
firstName
lastName
address1
address2
city
phone
zip
}
}
userErrors {
field
message
}
}
}
Variables:
{input:{
id: ‘gid://shopify/Order/5789426254002’,
email: ‘new.email1@example.com’,
note: ‘i am the note tényleg1’,
shippingAddress: {
firstName: ‘Jane1’,
lastName: ‘Doe1’,
zip: ‘6001’,
city: ‘New York1’,
address1: ‘123 Shopify Way1’,
address2: ‘asd1’,
phone: ‘+36203333331’
}
}}
The response what we get is:
{
data: {
orderUpdate: {
order: null,
userErrors: [{ field: null, message: ‘Too many attempts. Please try again later.’ }],
},
},
extensions: {
cost: {
requestedQueryCost: 11,
actualQueryCost: 10,
‘throttle Status’: {
maximumAvailable: 2000,
currentlyAvailable: 1990,
restoreRate: 100,
},
},
},
};
We have also noticed it happens only if we want to mutate in one mutation an order property like email or phone and one of a shippingAddress property.
By the rest API we could update the order’s resource in one request, but here is not possible currently.
Would you be so kind to check it what is going on there?