760 INTERNAL ERRORs when calling Shopify GraphQL API

manhnq94
Excursionist
28 1 1

Last night (from 2021-04-08T22:03:00.00+07:00 to 2021-04-08T22:29:00.00+07:00), I called productUpdate mutation ~56000 times, and 760 times (about 1.36% of total calls) returned with error :

[{'message': 'Internal error. Looks like something went wrong on our end.\nRequest ID: 3221c58f-3446-4843-a452-a517787121c6 (include this in support requests).', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'requestId': '3221c58f-3446-4843-a452-a517787121c6'}}]

The request id of each error calls is different but the message is same. All errored calls returned with message "Internal error. Looks like something went wrong on our end".

And this is not the first time I saw these errors in Shopify GraphQL server.

 

 

0 Likes
garyrgilbert
Explorer
45 3 11

 

Hi there,

are you checking to make sure that you have available query "credits" before making your call? It could be that they are rejecting it without providing the correct error message? just a thought?

Also, it would be interesting to know what exactly you were trying to mutate? Shopify will throw a 760 internal error if you try to mutate something that doesn't exist. I personally think that they should tell you that something doesn't exist instead of throwing that error. Someone posted a similar error here and seemed to be the problem.. so I would double check to make sure that you aren't mutating something that doesn't exist.

Cheers,

Gary

 

0 Likes
manhnq94
Excursionist
28 1 1

My codes already have retry mechanism and wait a few seconds when the call is throttle.

This is the query string and variable I used:

 

 

updateProductGraphQL = """
	mutation productUpdate($input: ProductInput!) {
		productUpdate(input: $input) {
			product {
				id
			}
			userErrors {
				field
				message
			}
		}
	}
"""
updateProductVariable = {
	"input": {
		"id": product["graphqlID"],
		"title": product["title"],
		"descriptionHtml": product["description"],
		"seo": {
			"title": product["title"],
			"description": product["description"]
		},
		"productType": product["productTypeName"],
		"options": productOptions,
		"variants": productVariants
	}
}

 

 

 

product options array only have 2 elements (Products and Sizes)

product variants array have 8 elements

my account is Shopify Plus, so the errors can't be related to 50k variants limitation.

my products still exist in the store. In fact, I have to re-update the remaining products after 12 hours using the same code and it worked fine!

 

0 Likes
garyrgilbert
Explorer
45 3 11

 

Ok, well if you have taken the throttling precautions and ran the same code again and it worked fine then the only conclusion was that there was absolutely a technical problem on shopifys side of things.. I would watch it for a while and see if it continues to give you problem then raise an actual support ticket with shopify..

Sorry I couldnt be more help.

Cheers,

Gary

0 Likes
manhnq94
Excursionist
28 1 1

Thank you for your kind,

 

If the errors still occur, I'll let you know.

0 Likes
manhnq94
Excursionist
28 1 1

Hi Gary,

Unfortunately, I got a different error when I ran the same query code as above.

The status code is 502

The response is a html page

<head><title>502 Bad Gateway</title></head>

<body>

<center><h1>502 Bad Gateway</h1></center>

<hr><center>nginx</center>

</body>

</html>

 

0 Likes
manhnq94
Excursionist
28 1 1

Hi Gary,

The INTERNAL_SERVER_ERROR occurred again. This time, I update 28340 products and got 222 errors. I used same code and same products from the previous ran, just change the price of each variants.

I queried product id to check it's existence before calling productUpdate mutation so 100% it exists in my store.

Here is some request ids so you can include them in your support ticket.

81999a76-b3f3-4455-a423-adcbb00353cb
53b49e1a-383e-43f2-ad7d-f83fcc5ea0cc
43693b3f-85e8-4453-846b-410c6de1edf3
18548792-4fdd-4e9c-8cf1-edcb0b42132a
a99938f7-5a26-4789-86f6-0117109ce054
56ab2472-a0ac-413a-8331-19dd6bb9ae8a
84891ac1-3f26-4d10-a04b-4ec7b5ccf5e3
a859c31b-07bf-4f94-8369-edc21e1f1c5f
ae47ecdd-5a00-4f0d-8a83-03de39f5d95c
8b2c5456-0146-4cb6-8147-58ba0d305f35
cff7c193-247a-45dc-b5f1-0fe78acd31cf
3eca7226-0113-49a3-9654-4cefc0f7595b
8d6d72f7-eca4-4a37-87a0-ad33ff39d4eb
2c3c1269-418f-45a3-9897-0540378847e0
6e644199-560f-400d-bfb2-c86a1738975e
2660ab70-5904-4c85-ab79-ca000e429706
20368ec9-f346-46b8-b17c-ff8fae2f2efc
90d2482e-922e-4888-91db-7b373cc78b4a
0bbd621a-f52a-401b-9387-66f9d9109086
1e3521e9-527e-487b-b709-6caafe2f8000
107c7c1b-3f5f-40fc-8758-01969a859c04
61d691a8-484b-4608-aaf1-2f5efd5049b4
fd3872ca-7a89-47f3-8097-10309ec45ecd
a04cf07f-ec91-43b4-ab8f-4ba673ce8b3c
35038ff3-7082-4266-99fa-df5fb2ab0c4d
a5ea64d1-1953-4086-a431-0c3154791dd6
4848945c-52ff-4453-9218-ecb8265465d5
f651b5aa-2e8d-4bf7-9001-0a2057d56fcd
76cb8184-159e-4f23-8bbc-6d4b8fbc7de1
18180338-9773-4efd-8527-9571e884a312
e776b7bb-41c7-498f-8ffd-8378471967e3
fdf127c9-4119-450b-946c-94ec6a9ec34e
bcbf7d29-d4ad-4d5e-b976-ff37865fd556
cac10dae-69fc-4226-b19c-bd5ea7eed7ff
e0eb9316-c55c-40a2-81ad-421201c26d90
ab7c41b0-8024-437f-9017-939ceff0db52
a2da84c7-c790-4d07-9a63-c449c2db8087
436eb8bd-fa90-47f9-838e-1d1d9da2ba47
17048b9c-fdd3-4b53-92dc-1b78cfc2fff1
a01d1795-aa8c-4bcd-b27b-b683028c9773
9242a782-81c5-42a3-9c09-79a3bddaf356
25aef14e-ce88-4956-9fc5-4e2c9781f9ea
4841a6b7-c877-43ad-a0ee-2e7edc28fe5d
a102304c-6861-40ba-88b8-ac26d6824372
fa0bb5d8-2c4b-4cbb-a3d3-7515c651ac2e
1b6c3004-a0da-44ed-9e93-ab24c158a1b7
bc05c857-23dd-4e88-a662-73fb2b6f0ce4
fccefb3c-cd65-46cb-b2b6-9943be5ec341
5eea1548-38c6-4114-92e7-c8b5268d03f7
401e3e33-f0b3-4ac5-b1ed-28c1def2ce7b
0ffd7e3b-6936-49d3-abf5-30724535feeb
162c0cea-8a6b-49d5-be63-419a61f6e3a8
0995947d-2b17-4db9-84b3-ab642cd99cd3
9dd88a07-bbc2-4b2d-960a-ef6f0ab97ebf
8b5ce804-5f6f-422d-ab69-32d574f4014e
e010b4f6-a198-48bf-8c12-2f5b521e5320
b8cf333a-04a1-40d8-8104-fb6d9f24593b
b39c43e8-2281-4aac-9677-8818cb35d13b
3c0b024b-3471-458f-9422-6ee4affc84c3
8d5fdf1a-c713-439c-8572-f6abf6dd7c10
e802516b-454d-4d38-942c-ab8ec716bc03
b5f11c7c-66be-48ce-be6b-da553be73c10
3769623f-75a9-4d31-84d4-7e2f5ae63f9b
851973ed-638d-4284-800a-7045b21fedeb
e0cb11fa-38cd-432e-b0a4-b608674e85f4
fca1ff60-1334-46c1-bdf7-598b45ca2a9a
0fc6c7ff-dd78-4f2e-bd0a-69775ae292e1
70e07a77-edc1-4588-9c13-6e7c5d8e877a
925b2154-d01a-4d48-8a4e-2d6d0d5ae788
dc365e60-311d-4a8c-871b-c258ca5c0e11
9745c952-c7a3-43c6-b11d-a2510c399022
d767260e-e09f-4e21-b0f0-329416e684f8
ceaa8ae0-d3d0-4d7b-a486-3f7e2b1c533e
ed7c26c5-082f-45fc-afb9-19f4c11a7c31
cb039fbf-39d1-4f3f-a34b-ba9f0631f29f
2fe48b8c-78e2-40b5-ab47-4e6ef1c64c7e
37b081f7-de60-4558-8720-74e81991f52f
dbe8f40c-26ed-446d-a5a5-557f2cdc6e35
c2e3c92a-ddc0-4f8c-bd4c-d6237bde0a70
01397851-479b-4cf5-bd2c-4e408549d333
373dc713-0682-46e9-be9a-60ab0ebf1fec
821e971d-e615-44fc-aaab-a3527773701c
5b40b3e0-146d-4628-9b23-984c6d587d53
d3f0f408-486f-4223-8c5b-080091eadcb8
b63e8956-69ee-4b69-9d83-5ba6d37d34f1
80757aa2-c772-45b6-811c-e1f696e930da
fd50b794-1b97-41be-8352-34811db61c9d
0183db9e-1450-4116-a3cf-dfab48e3072b
d2cd8ef0-127e-40ca-8edb-b54bdb763cdc
a8d7131c-c7b6-4b5b-8fca-0a2f8021ead6
a9f63651-71a0-4174-8b64-4a84946451da
d7a9b3a9-a332-44fd-a8d0-4ce142720ea9
00f81ece-f0f1-4197-9554-2cc3380d8d02
c3c9a05a-ab5c-4f0e-b3f7-945f0892e93e
aa90992a-cfb9-427f-a0e1-1cea96c30860
f84f63fb-3d44-4e1b-ace7-c08978753dd2
3dae5606-6a22-41de-ac60-d1ba3879ab79
e8c797d0-8bdc-408e-8d5c-3d5d86f58b21
c55f276a-424d-4f4c-bcd0-7e6bf29df2b1
e76467fe-7a62-4ef9-ac66-8e7683bac515
8c11c910-26da-414e-ab30-edd91cf52cc7
39657d7c-ba18-4808-8d46-6cbacdb597fd
20baaa4e-cb1b-43d9-9cad-05852f56a3ef
2f40b66f-29eb-40b9-9177-ba2f60678101
7560dbde-1e32-48c1-894d-1324f55e1736
a8184d13-68ec-4587-99ea-03637ba54749
edb3e368-cfad-451f-9ad6-7cf94e86b218
9dbc8412-759b-412f-8d5a-c6675ba90320
82f01c09-e9d1-4e4a-8551-350d1bf9a229
6d2e4082-0eab-4b90-afca-58ea3a037ffe
7cda7181-3df7-4294-8e25-ae4953652d1c
603f71bb-133d-4470-a11b-adbaa13a1461
2d7ba8f0-47c0-4c5b-a006-bc589ef1cc4e
34d6cac6-d7c4-47ac-8bf0-dc1a9dc98b07
12c50efc-8504-4127-aab4-e08b2ae8b80a
3c349bd4-16ee-48a5-b903-f497953f90ce
3731df4e-4c97-4133-aaaa-d12a920faa19
182a73a4-55c5-42da-a587-8d55e3017c78
6d4ae953-b382-44d8-92f4-a340e011fd6d
5a47ba81-5f3f-4a0b-85a2-227e1470171d
d453eecc-03b9-4718-b0e2-f04846677d3c
6d7175c7-2a9e-4367-b1a5-4d03a8a47e05
673e2076-a417-472d-9998-d16c97bb1dd8
105ec483-27ee-4b4c-8506-3c9c611ef14e
1db004b9-37b0-460d-843b-1cacc6b34107
fe823ad3-c101-459a-a681-499d9109a310
666e7885-a4cc-4a37-8cef-fb1a0afe65d2
d13c2590-450c-4d3d-a099-a28d1a4a9052
9db7db5a-7087-4bf1-8b60-22b1702d2e8e
127f39c0-667b-4528-8309-9d9685cbb7a8
9d1923f5-23ce-4073-8079-4ae89444f4c9
71133195-afb4-4bfc-a235-1c599a62329f
499bb6b2-4f0a-4799-881f-bc9aec76f382
060e7e38-ec04-4811-af32-b582418569a9
4a49c8b7-9f64-4b2f-8963-915edcd2e6f9
6f3aa10a-f5ff-43f1-8129-2a6608d29d94
40ece999-436c-46a3-84d1-d86f16c7de1e
124831e7-33cc-4ff0-a192-2288fe4530d7
da9fa3b7-ee15-46e8-9288-72d88b7ad6ad
195e9558-862a-4b8f-89b4-1ac99c5971ba
f8fea4a7-5cb3-4145-8737-18730ae5e82e
33e499c6-5621-467d-aaed-2f7d28433aae
b623cc2a-f34c-4b61-b75d-d3fbeb77be07
31fb5658-9288-4821-93a8-7b55fbb63ce6
38b98327-e4a5-412f-8c94-508e8852b259
3ea9aea5-8a6a-460b-a1db-cbcf765b7e14
10a1bacf-5e10-4811-834b-8d46afd130cc
a974d508-a9e1-4b0e-836e-d6beb0ee5dac
a4332cd2-2d91-4475-88c0-707db129c933
0b4bdc5b-87e4-4469-94f9-ca5892040bcd
870ebfbe-7ede-4631-ad15-7a7eafd30470
493e2a8a-6d99-471d-a966-e1b90fa8fa4c
61893a15-6ffe-4a75-8f3d-6137a57be5f3
59aee335-1164-4e5c-8219-d5fecac8de3e
ec83b960-63a8-493f-b260-6f677f1890a8
65f7f051-b671-4275-bb84-d5b7863ccb18
06d59e90-2b7d-4343-bb61-19a9c3f29191
923421a9-8bae-4fe3-8de5-28134ddc77c3
da7493d1-7287-4d30-9a72-c4592608043a
1d620ee9-effc-449b-8dd5-0d0c73b45e04
f6f38c5b-57c0-448e-9e05-b29ff7a7ec65

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
315 42 54

Hey @manhnq94 

Thanks for reporting this. It looks like most of these are due to timeouts. If you see this error occur in the future I would retry the mutation. I would also suggest you take a look at bulk mutations: https://shopify.dev/tutorials/bulk-import-data-with-admin-api

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes