[MapProxy] tms_capabilities - internal error
BERÉNYI Attila
aberenyi at gislab.hu
Thu Aug 7 04:45:19 PDT 2014
Hi,
Sorry about the late response.
I've upgraded to MapProxy 1.7.1 - unfortunately the problem still persists.
Here's what I've done:
1. # pip2 install --upgrade --no-deps mapproxy
2. $ mapproxy-util create -t base-config mapproxy
3. $ mapproxy-util serve-develop mapproxy/mapproxy.yaml
Running curl -I '
http://127.0.0.1:8080/demo/?tms_capabilities&layer=osm&srs=EPSG3857' gives
HTTP/1.0 500 Internal Server Error
Content-length: 14
Content-type: text/plain
Server: MapProxy/1.7.1 (Werkzeug based) Python/2.7.8
Date: Thu, 07 Aug 2014 11:40:37 GMT
Related log message:
[2014-08-07 13:41:23,651] mapproxy.wsgiapp - CRITICAL - fatal error in demo
for /demo/ tms_capabilities&layer=osm&srs=EPSG3857
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/mapproxy/wsgiapp.py", line 181, in
__call__
resp = self.handlers[handler_name].handle(req)
File "/usr/lib/python2.7/site-packages/mapproxy/service/demo.py", line
105, in handle
capabilities = urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/mapproxy/wsgiapp.py", line 181, in
__call__
resp = self.handlers[handler_name].handle(req)
File "/usr/lib/python2.7/site-packages/mapproxy/service/demo.py", line
105, in handle
capabilities = urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
[info] 127.0.0.1 - - [07/Aug/2014 13:41:23] "HEAD
/demo/?tms_capabilities&layer=osm&srs=EPSG3857 HTTP/1.1" 500 -
Any idea?
Cheers,
Attila
2014-07-23 11:08 GMT+02:00 Oliver Tonnhofer <olt at omniscale.de>:
> Hi,
>
> On 23.07.2014, at 09:39, BERÉNYI Attila wrote:
> > Thanks for the quick reply.
> >
> > Unfortunately it does not work with serve-develop either.
> >
> > Same error:
> > [2014-07-23 07:35:01,101] mapproxy.wsgiapp - CRITICAL - fatal error in
> demo for /demo/ tms_capabilities&layer=xxxxxxx&srs=EPSG3857
>
> Ok, that's indeed a bug. The demo page generated wrong URLs for TMS
> services that use use_grid_names: true. I fixed that in the 1.7x and master
> branch.
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com
> http://mapproxy.org | https://github.com/olt | @oltonn
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20140807/686e39df/attachment.html>
More information about the MapProxy
mailing list