#5942 closed enhancement (fixed)
Add retry after HTTP 502
Reported by: | jpalmer | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | HTTP ESRI REST API |
Cc: |
Description
A follow-on to #5920/r28893, I've now found an Esri server that sometimes returns a 502 error. e.g
ogr2ogr -f "PostgreSQL" "PG:dbname=test" "http://maps.stats.govt.nz/wss/service/arcgis1/guest/Boundaries/2013_Geographies/MapServer/9/query?where=1=1&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&maxAllowableOffset=&outSR=&outSR=&outFields=&outFields=&geometry=&returnZ=true&returnM=true&gdbVersion=&f=json" -nln ta_bdys
ERROR 1: HTTP error code : 502
This patch adds 502 to the list of error codes when a retry will be attempted.
Attachments (1)
Change History (3)
by , 8 years ago
comment:1 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
trunk r29037 "CPLHttpFetch(): add 502 to HTTP error codes that can be retried (#5942, patch by jpalmer)"