Skip to content

GetFeatureInfo fails on 502 Bad Gateway #1288

Description

@alturium

Loaded a WMS map layer ("geonames") but when using the Identify plug-in attempted a GetFeatureInfo (via MapInfo.js) and via axios that generated an axios exception with status: 502 statusText: Bad Gateway.

When I execute a curl command (minus the mapstore proxy), the request works. I'm not sure how to proceed in debugging this further (peer into axios?) and perhaps look into the proxy setup.

Here are a few artifacts:
Capturing the XHR header from chrome debugging:

GET /mapstore/proxy/?url=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttp%2F172.18.36.22%3A8080%2Fgeoserver%2FGeoNames%2Fwms%3Fservice%3DWMS%26version%3D1.1.1%26request%3DGetFeatureInfo%26format%3Dimage%252Fpng%26query_layers%3DGeoNames%253Ageoname%26layers%3DGeoNames%253Ageoname%26info_format%3Dtext%252Fplain%26feature_count%3D10%26x%3D51%26y%3D51%26srs%3DEPSG%253A3857%26height%3D101%26width%3D101%26bbox%3D-10380363.420268986%252C4469769.88451811%252C-10379398.402786884%252C4470734.90200021 HTTP/1.1
Host: localhost:8081
Connection: keep-alive
Accept: application/json, text/plain, /
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Referer: http://localhost:8081/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: en-US,en;q=0.8

This worked: running via curl (minus proxy part):

curl "http://172.18.36.22:8080/geoserver/GeoNames/wms?service=WMS&version=1.1.1&request=GetFeatureInfo&format=image%2Fpng&query_layers=GeoNames%3Ageoname&layers=GeoNames%3Ageoname&info_format=text%2Fplain&feature_count=10&x=51&y=51&srs=EPSG%3A3857&height=101&width=101&bbox=-10380363.420268986%2C4469769.88451811%2C-10379398.402786884%2C4470734.90200021"

And returned response (plain/text):

name = Downtown Airport
asciiname = Downtown Airport
alternatenames = KOLR
latitude = 37.2231
longitude = -93.24398
fclass = S
fcode = AIRP
country = US
cc2 = null
admin1 = MO
admin2 = 077
admin3 = null
admin4 = null
population = 0
elevation = 419
gtopo30 = 421
timezone = America/Chicago
moddate = 2014-10-07
the_geom = [GEOMETRY (Point) with 1 points]

Thanks ahead of time!

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions