Receiving status code 520 while trying to fetch metafields for a product ID

Highlighted
New Member
5 0 0

Any ideas why I am receiving this response when trying to:

https://shopify.dev/docs/admin-api/rest/reference/metafield?api[version]=2020-04#index-2020-04

Response:

{
"statusCode": 520,
"body": "<html>\r\n<head><title>520 Origin Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>520 Origin Error</h1></center>\r\n<hr><center>cloudflare-nginx</center>\r\n</body>\r\n</html>\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n",
"headers": {
"date": "Tue, 26 May 2020 23:04:41 GMT",
"content-type": "text/html",
"content-length": "581",
"connection": "close",
"set-cookie": [
"__cfduid=df06f3ce69470d4575261e22d793e17d91590534217; expires=Thu, 25-Jun-20 23:03:37 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax"
],
"cache-control": "no-store, no-cache",
"cf-cache-status": "DYNAMIC",
"cf-request-id": "02f4d336c00000c99550b08200000001",
"expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
"server": "cloudflare",
"cf-ray": "599b216ac926c995-SEA",
"alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400"
},

0 Likes
Highlighted
New Member
5 0 0

Just received this response with the same call to GET a products' metafields:

{
"statusCode": 524,
"body": "<html>\r\n<head><title>524 Origin Time-out</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>524 Origin Time-out</h1></center>\r\n<hr><center>cloudflare-nginx</center>\r\n</body>\r\n</html>\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n",
"headers": {
"date": "Wed, 27 May 2020 20:20:49 GMT",
"content-type": "text/html",
"content-length": "587",
"connection": "close",
"set-cookie": [
"__cfduid=d614f1609b7bda53a732f9aba5f93e1e71590610749; expires=Fri, 26-Jun-20 20:19:09 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax"
],
"cache-control": "no-store, no-cache",
"cf-request-id": "02f96300360000f569a6ac7200000001",
"expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
"server": "cloudflare",
"cf-ray": "59a26de05b60f569-SEA",
"alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400"
},

0 Likes
Highlighted
New Member
5 0 0

Am I the only person to get these error messages?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
439 53 84

Hey @DSL,

 

I'm not familiar with these http_status codes personally, but a quick Google search tells me they're used primarily by Cloudflare.

 

Can you share more details about how you're making this request? As well, if you can you provide the full response headers from the call I can use that to try and find more information in our logs.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes