mirror of https://github.com/scrapy/scrapy.git
added 502 to RETRY_HTTP_CODES
This commit is contained in:
parent
e3f50b97b2
commit
7400ceb1ed
|
|
@ -724,7 +724,7 @@ Maximum number of times to retry, in addition to the first download.
|
|||
RETRY_HTTP_CODES
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
Default: ``[500, 503, 504, 400, 408]``
|
||||
Default: ``[500, 502, 503, 504, 400, 408]``
|
||||
|
||||
Which HTTP response codes to retry. Other errors (DNS lookup issues,
|
||||
connections lost, etc) are always retried.
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ REFERER_ENABLED = True
|
|||
|
||||
RETRY_ENABLED = True
|
||||
RETRY_TIMES = 2 # initial response + 2 retries = 3 requests
|
||||
RETRY_HTTP_CODES = [500, 503, 504, 400, 408]
|
||||
RETRY_HTTP_CODES = [500, 502, 503, 504, 400, 408]
|
||||
RETRY_PRIORITY_ADJUST = -1
|
||||
|
||||
ROBOTSTXT_OBEY = False
|
||||
|
|
|
|||
Loading…
Reference in New Issue