Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRISM portal sends misformatted map requests upon first loading #239

Open
corviday opened this issue Jul 13, 2021 · 0 comments
Open

PRISM portal sends misformatted map requests upon first loading #239

corviday opened this issue Jul 13, 2021 · 0 comments

Comments

@corviday
Copy link
Contributor

The PRISM portal, upon initial load, send this map request:

https://services.pacificclimate.org/ncwms-mm-rproxy/dynamic/x?LAYERS=pr_mon_PRISM_historical_19700101-20001231_bc%2Fpr&TRANSPARENT=true&TIME=1985-06-30&STYLES=default%2Foccam-inv&LOGSCALE=true&NUMCOLORBANDS=249&VERSION=1.1.1&SRS=EPSG%3A3005&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=-236114,41654.75,1763886,2041654.75&WIDTH=512&HEIGHT=512

which returns a 400. Very shortly thereafter, it sends this map request:

https://services.pacificclimate.org/ncwms-mm-rproxy/dynamic/x?LAYERS=pr_mon_PRISM_historical_19700101-20001231_bc%2Fpr&TRANSPARENT=true&TIME=1985-06-30&STYLES=default%2Foccam-inv&LOGSCALE=true&NUMCOLORBANDS=249&VERSION=1.1.1&SRS=EPSG%3A3005&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&COLORSCALERANGE=1%2C2000&BBOX=-236114,41654.75,1763886,2041654.75&WIDTH=512&HEIGHT=512

which is correct and returns a map image. The second map request supplies a COLORSCALERANGE parameter, the first does not. This is probably because this portal doesn't select a COLORSCALERANGE until the dataset is set.; I would guess the first, misformatted, map request goes out before the information needed to set a dataset is retreived from the database.

This issue is not user visible - the time between the bad request and the good request is pretty quick - but does show up in our logs as 400 errors, including alerts if enough people visit the PRISM portal at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant