소스 검색

catch ExtremelyRare™ 502 response from CloudFront

happens occasionally when they can't reach the mojang upstream server
jomo 9 년 전
부모
커밋
23948afae5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/networking.js

+ 1 - 0
lib/networking.js

@@ -70,6 +70,7 @@ exp.get_from_options = function(rid, url, options, callback) {
         break;
       case 429: // this shouldn't usually happen, but occasionally does
       case 500:
+      case 502: // CloudFront can't reach mojang origin
       case 503:
       case 504:
         // we don't want to cache this