A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi Shopify Team,
I executed a product query and the server responded an error with status 504. I already executed this query multiple times and it works normally, please help me solve this problem.
The query I ran:
"""
query ($id: ID!){
product(id: $id) {
id
tags
}
}
"""
request id: 8ba5ff89-5d5c-4ed9-9c44-8a1e136d0478
environment: AWS lambda function
response time: 2021-03-30T10:01:04.773+07:00
response status: 504
response text:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="referrer" content="never" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Something went wrong</title>
<style type="text/css">
*{box-sizing:border-box;margin:0;padding:0}html{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background:#F1F1F1;font-size:62.5%;color:#303030;min-height:100%}body{padding:0;margin:0;line-height:2.7rem}a{color:#303030;border-bottom:1px solid #303030;text-decoration:none;padding-bottom:1rem;transition:border-color 0.2s ease-in}a:hover{border-bottom-color:#A9A9A9}h1{font-size:1.8rem;font-weight:400;margin:0 0 1.4rem 0}p{font-size:1.5rem;margin:0}.page{padding:4rem 3.5rem;margin:0;display:flex;min-height:100vh;flex-direction:column}.text-container--main{flex:1;display:flex;align-items:start;margin-bottom:1.6rem}.action{border:1px solid #A9A9A9;padding:1.2rem 2.5rem;border-radius:6px;text-decoration:none;margin-top:1.6rem;display:inline-block;font-size:1.5rem;transition:border-color 0.2s ease-in}.action:hover{border-color:#000}@media all and (min-width:500px){.text-container--main{align-items:center}.page{padding:7.5rem 10.5rem}}
</style>
</head>
<body class="status-error status-code-500">
<div class="page">
<div class="text-container text-container--main">
<div>
<h1 data-i18n="content-title">Something went wrong</h1>
<p data-i18n="try-refreshing">There was a problem loading this website</p>
<p data-i18n="try-again">Try refreshing the page.</p>
<a href="." class="action" data-i18n="refresh-page">Refresh Page</a>
</div>
</div>
</div>
</body>
</html>
<script>
var t = {
"cs": {
"title": "Něco se pokazilo",
"content-title": "PÅ™i naÄÃtánà této webové stránky doÅ¡lo k chybÄ›",
"try-refreshing": "Zkuste stránku obnovit.",
"try-again": "Pokud se stránka ani pÅ™esto nenaÄte, zkuste to znovu za pár minut.",
"refresh-page": "Obnovit stránku"
},
"nb": {
"title": "Noe gikk galt",
"content-title": "Det oppsto et problem ved lasting av denne nettsiden",
"try-refreshing": "Prøv å oppdatere siden.",
"try-again": "Hvis nettstedet fortsatt ikke lastes inn, kan du prøve igjen om noen minutter.",
"refresh-page": "Oppdater siden"
},
"th": {
"title": "à¹à¸à¸´à¸”ข้à¸à¸œà¸´à¸”à¸à¸¥à¸²à¸”ขึ้น",
"content-title": "à¹à¸à¸´à¸”ปัà¸à¸«à¸²à¹ƒà¸™à¸à¸²à¸£à¹‚หลดà¹à¸§à¹‡à¸šà¹„ซต์นี้",
"try-refreshing": "โปรดรีà¹à¸Ÿà¸£à¸Šà¸«à¸™à¹‰à¸²à¸™à¸µà¹‰à¸à¸µà¸à¸„รั้ง",
"try-again": "หาà¸à¹à¸§à¹‡à¸šà¹„ซต์ยังไม่โหลด โปรดลà¸à¸‡à¸à¸µà¸à¸„รั้งในà¸à¸µà¸à¸ªà¸±à¸à¸„รู่",
"refresh-page": "รีà¹à¸Ÿà¸£à¸Šà¸«à¸™à¹‰à¸²"
},
"pt-BR": {
"title": "Houve um erro.",
"content-title": "Houve um problema ao carregar este site",
"try-refreshing": "Tente atualizar a página.",
"try-again": "Se o site ainda não carregar, tente novamente dentro de alguns minutos.",
"refresh-page": "Atualizar a página"
},
"es": {
"title": "Algo salió mal.",
"content-title": "Se ha producido un error al descargar el sitio",
"try-refreshing": "Intenta actualizar la página.",
"try-again": "Si el sitio no se descarga, por favor, inténtalo en unos minutos.",
"refresh-page": "Actualizar la página"
},
"ko": {
"title": "ë¬¸ì œê° ë°œìƒí–ˆìŠµë‹ˆë‹¤.",
"content-title": "ì´ í˜ì´ì§ë¥¼ 로드하는 중 ë¬¸ì œê° ë°œìƒí–ˆìŠµë‹ˆë‹¤.",
"try-refreshing": "í˜ì´ì§ë¥¼ 새로 ê³ ì¹¨í•´ ë³´ì‹ì‹œì˜¤.",
"try-again": "ê·¸ë˜ë„ 사ì´íŠ¸ê° 로드ë˜ì§ 않으면 몇 분 í›„ì— ë‹¤ì‹œ ì‹œë„하ì‹ì‹œì˜¤.",
"refresh-page": "í˜ì´ì§ 새로 ê³ ì¹¨"
},
"da": {
"title": "Der opstod en fejl",
"content-title": "Der opstod en fejl under indlæsning af dette website",
"try-refreshing": "Prøv at opdatere siden.",
"try-again": "Hvis websitet ikke indlæses, kan du prøve igen om nogle få minutter.",
"refresh-page": "Opdatér siden"
},
"fi": {
"title": "Jotain meni pieleen",
"content-title": "Tämän verkkosivuston lataamisessa oli ongelma",
"try-refreshing": "Yritä päivittää sivu.",
"try-again": "Jos sivusto ei vieläkään lataudu, yritä uudelleen muutaman minuutin kuluttua.",
"refresh-page": "Päivitä sivu"
},
"pt-PT": {
"title": "Ocorreu um erro",
"content-title": "Ocorreu um erro ao carregar este site",
"try-refreshing": "Experimente atualizar esta página.",
"try-again": "Se o site continua a não carregar, tente novamente dentro de alguns minutos.",
"refresh-page": "Atualizar página"
},
"de": {
"title": "Irgendetwas ist schiefgelaufen.",
"content-title": "Beim Laden dieser Website ist ein Fehler aufgetreten.",
"try-refreshing": "Versuche, die Seite zu aktualisieren.",
"try-again": "Wenn die Seite immer noch nicht geladen wird, versuche es bitte in ein paar Minuten erneut.",
"refresh-page": "Seite neu laden"
},
"it": {
"title": "Si è verificato un errore",
"content-title": "Si è verificato un problema nel caricamento di questo sito web",
"try-refreshing": "Prova ad aggiornare la pagina.",
"try-again": "Se il sito ancora non si carica, per favore riprova tra qualche minuto.",
"refresh-page": "Aggiorna pagina"
},
"pl": {
"title": "Coś poszło nie tak",
"content-title": "Podczas ładowania tej strony internetowej wystąpił problem",
"try-refreshing": "Spróbuj odświeżyć stronę.",
"try-again": "Jeśli strona nadal się nie ładuje, spróbuj ponownie za kilka minut.",
"refresh-page": "Odśwież stronę"
},
"sv": {
"title": "Ett fel uppstod",
"content-title": "Det gick inte att ladda den här webbplatsen",
"try-refreshing": "Försök att uppdatera sidan.",
"try-again": "Försök igen om några minuter om webbplatsen fortfarande inte har laddats.",
"refresh-page": "Uppdatera sida"
},
"en": {
"title": "Something went wrong",
"content-title": "There was a problem loading this website",
"try-refreshing": "Try refreshing the page.",
"try-again": "If the site still doesn't load, please try again in a few minutes.",
"refresh-page": "Refresh Page"
},
"hi": {
"title": "कà¥à¤› गलत हà¥à¤†",
"content-title": "इस वेबसाइट को लोड करने में समसà¥à¤¯à¤¾ हà¥à¤ˆ",
"try-refreshing": "पृषà¥à¤ रà¥à¤«à¤¼à¥à¤°à¥‡à¤¶ करके देखें.",
"try-again": "यदि साइट अà¤à¥ तक लोड नहà¥à¤‚ हà¥à¤ˆ है, तो कृपया कà¥à¤› मिनटों में फिर से कोशिश करें.",
"refresh-page": "पेज को रà¥à¥à¥à¤°à¥‡à¤¶ करें"
},
"ja": {
"title": "å•é¡ŒãŒç™ºç”Ÿã—ã¦ã„るよã†ã§ã™",
"content-title": "ã“ã®ã‚¦ã‚§ãƒ–サイトをèªã¿è¾¼ã‚éš›ã«å•é¡ŒãŒç™ºç”Ÿã—ã¾ã—ãŸ",
"try-refreshing": "ページを更新ã—ã¦ã¿ã¦ãã ã•ã„ã‚",
"try-again": "サイトãŒèªã¿è¾¼ã¾ã‚Œãªã„å ´åˆã¯ã数分後ã«ã‚‚ã†ä¸åº¦ãŠè©¦ã—ãã ã•ã„ã‚",
"refresh-page": "ページを更新ã™ã‚‹"
},
"fr": {
"title": "Une erreur s'est produite",
"content-title": "Un problème est survenu lors du chargement de ce site",
"try-refreshing": "Essayez d'actualiser la page.",
"try-again": "Si le site ne charge toujours pas, veuillez réessayer dans quelques minutes.",
"refresh-page": "Rafraîchir la page"
},
"zh-TW": {
"title": "出了é»å•é¡Œ",
"content-title": "系統載入æ¤ç¶²ç«™æ™‚發生å•é¡Œ",
"try-refreshing": "請嘗試é‡æ–°æ•´ç†æ¤é é¢ã‚",
"try-again": "如æœç¶²ç«™ä»æœªè¼‰å…¥ï¼Œè«‹å¹¾åˆ†é˜å¾Œå†è©¦ä¸æ¬¡ã‚",
"refresh-page": "é‡æ–°æ•´ç†é é¢"
},
"ms": {
"title": "Sesuatu tidak kena",
"content-title": "Terdapat masalah memuatkan laman web ini",
"try-refreshing": "Cuba segarkan semula halaman.",
"try-again": "Jika laman web ini masih tidak memuatkan, sila cuba lagi dalam beberapa minit.",
"refresh-page": "Segarkan semula Halaman"
},
"tr": {
"title": "Bir sorun oluÅŸtu",
"content-title": "Bu web sitesi yüklenirken sorun oluştu",
"try-refreshing": "Sayfayı yenilemeyi deneyin.",
"try-again": "Sayfa hâlâ yüklenmiyorsa lütfen birkaç dakika sonra tekrar deneyin.",
"refresh-page": "Sayfayı Yenile"
},
"vi": {
"title": "Äã xảy ra lá»—i",
"content-title": "Äã xảy ra sá»± cố khi tải trang web nà y",
"try-refreshing": "ThỠlà m mới trang.",
"try-again": "Nếu trang web vẫn không tải được, vui lòng thá» lại sau Ãt phút.",
"refresh-page": "Tải lại trang"
},
"zh-CN": {
"title": "出ç°é”™è¯¯",
"content-title": "åŠ è½½æ¤ç½‘站时出ç°é—®é¢˜",
"try-refreshing": "请å°è¯•åˆ·æ–°é¡µé¢ã‚",
"try-again": "如æœç½‘ç«™ä»æœªåŠ è½½ï¼Œè¯·åœ¨å‡ åˆ†é’Ÿåé‡è¯•ã‚",
"refresh-page": "刷新页é¢"
},
"nl": {
"title": "Er ging iets mis",
"content-title": "Er is een probleem opgetreden bij het laden van deze website",
"try-refreshing": "Laad de pagina opnieuw.",
"try-again": "Als de site nog steeds niet laadt, probeer het over een paar minuten opnieuw.",
"refresh-page": "Pagina opnieuw laden"
}
};
var language = navigator.languages && navigator.languages[0] || // Chrome / Firefox
navigator.language || // All browsers
navigator.userLanguage || // IE <= 10
"en";
language = language.split("-")[0]; // Strip country code
translations = t[language] || t["en"];
// Replace content on screen
for (var id in translations) {
target = document.querySelector("[data-i18n=" + id + "]");
if (target != undefined) {
target.innerHTML = translations[id];
}
}
// Replace title tage
document.title = translations["title"];
// Replace language tag
if (t[language]) { document.getElementsByTagName('html')[0].setAttribute('lang', language); };
</script>
Hello @manhnq94
I am not sure but this might be reason for 504
If you have executed the same query multiple times successfully before encountering the 504 error, it's possible that there is a temporary issue with the server or network connectivity. Here are a few steps you can take to troubleshoot the problem:
Retry the query: Attempt to run the query again after waiting for a short period. Temporary network or server issues can sometimes resolve on their own.
Check network connectivity: Ensure that your network connection is stable and not experiencing any interruptions. You can try accessing other websites or services to confirm your internet connectivity.
Verify the GraphQL endpoint: Double-check that the GraphQL endpoint you are targeting is correct and accessible. Confirm the URL and any required authentication or authorization parameters.
Test with a different client or tool: If you are using a specific GraphQL client or tool, try running the query with a different client or tool to rule out any potential issues related to your current setup.
Contact Shopify support: If the issue persists and you have ruled out potential local factors, it's advisable to reach out to Shopify support for further assistance. They can investigate if there are any known issues or provide specific guidance based on your account and environment.
Thanks