Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

500.patch (1.3 KB ) - added by jpalmer 9 years ago.

Download all attachments as: .zip

Change History (3)

by jpalmer, 9 years ago

Attachment: 500.patch added

comment:1 by Even Rouault, 9 years ago

Resolution: fixed
Status: newclosed

trunk r29037 "CPLHttpFetch(): add 502 to HTTP error codes that can be retried (#5942, patch by jpalmer)"

comment:2 by jpalmer, 9 years ago

Thanks Even!

Note: See TracTickets for help on using tickets.