So when I call
fetch('https://wslgis.water.co.nz/arcgis/rest/services/Services/WastewaterComb/MapServer/2/query?f=json&geometry=%7B%22xmin%22%3A1752242.4364089235%2C%22ymin%22%3A5939768.593982927%2C%22xmax%22%3A1752548.184522064%2C%22ymax%22%3A5940074.342096068%7D&maxAllowableOffset=0.5971642834777837&orderByFields=OBJECTID&outFields=OBJECTID%2CPROCESS&outSR=2193&quantizationParameters=%7B%22extent%22%3A%7B%22spatialReference%22%3A%7B%22latestWkid%22%3A2193%2C%22wkid%22%3A2193%7D%2C%22xmin%22%3A1752242.4364089235%2C%22ymin%22%3A5939768.593982927%2C%22xmax%22%3A1752548.184522064%2C%22ymax%22%3A5940074.342096068%7D%2C%22mode%22%3A%22view%22%2C%22originPosition%22%3A%22upperLeft%22%2C%22tolerance%22%3A0.5971642834777837%7D&resultType=tile&returnExceededLimitFeatures=false&spatialRel=esriSpatialRelIntersects&where=1%3D1&geometryType=esriGeometryEnvelope&inSR=2193')
Or any URL for that domain I just get Error: Network connection lost. without any explanation.
I'm working locally, It works perfectly fine in the browser, Using CURL or PostMan. So I suspect there is an actual issue with workerd or something here.
Full log:
[wrangler:error] Error: Network connection lost.
at async jsonError (file:///home/dylan/Data/CIBIT/property-report/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody (file:///home/dylan/Data/CIBIT/property-report/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)