pacificclimate / plan2adapt-v2

Plan2Adapt in React, driven by CMIP5/6 backend
0 stars 0 forks source link

Call to ncwms provokes 500 error #133

Closed rod-glover closed 4 years ago

rod-glover commented 4 years ago

In particular:

GET /pcex/ncwms?request=GetLegendGraphic&colorbaronly=true&width=20&height=0&palette=seq-Greens&numcolorbands=249 HTTP/1.1
Host: services.pacificclimate.org
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36
Accept: image/webp,image/apng,image/*,*/*;q=0.8
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: no-cors
Sec-Fetch-Dest: image
Referer: http://docker-dev01.pcic.uvic.ca:30500/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Cookie: _ga=GA1.2.23724916.1540438880; _gid=GA1.2.272095956.1590096666

HTTP/1.1 500
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 2933
Date: Fri, 22 May 2020 14:55:20 GMT

Note q.p. height=0: likely culprit.

rod-glover commented 4 years ago

Interesting: Error only appears when running in Docker.

Docker image builds production app as opposed to running in development mode, possible cause? No: Local (dev machine) build does not show the error when app is built and run. Docker is the culprit, somehow. Odd, since it seems to come down to whether the rendered element has dimensions when that call is first issued. Why should the container matter to a client-side effect like that??