{"action":"created","issue":{"url":"https://api.github.com/repos/omniscale/wmtsproxy/issues/2","labels_url":"https://api.github.com/repos/omniscale/wmtsproxy/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/omniscale/wmtsproxy/issues/2/comments","events_url":"https://api.github.com/repos/omniscale/wmtsproxy/issues/2/events","html_url":"https://github.com/omniscale/wmtsproxy/issues/2","id":84483514,"number":2,"title":"Internal server error on a given WMS doc","user":{"login":"viddo","id":978461,"avatar_url":"https://avatars.githubusercontent.com/u/978461?v=3","gravatar_id":"","url":"https://api.github.com/users/viddo","html_url":"https://github.com/viddo","followers_url":"https://api.github.com/users/viddo/followers","following_url":"https://api.github.com/users/viddo/following{/other_user}","gists_url":"https://api.github.com/users/viddo/gists{/gist_id}","starred_url":"https://api.github.com/users/viddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viddo/subscriptions","organizations_url":"https://api.github.com/users/viddo/orgs","repos_url":"https://api.github.com/users/viddo/repos","events_url":"https://api.github.com/users/viddo/events{/privacy}","received_events_url":"https://api.github.com/users/viddo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T10:29:28Z","updated_at":"2015-06-03T11:05:37Z","closed_at":null,"body":"The original WMS source: http://api.maps.vic.gov.au/vicmapapi-mercator/map-wm/wms?&request=GetCapabilities&service=WMS\r\n\r\nWhen checked through the REST API like this `/check?url=http%3A%2F%2Fapi.maps.vic.gov.au%2Fvicmapapi-mercator%2Fmap-wm%2Fwms%3F%26request%3DGetCapabilities%26service%3DWMS&type=wms&callback=cb`\r\n\r\nit yields:\r\n```\r\ncb({\r\n\"error\": \"internal server error\"\r\n})\r\n```\r\n\r\nThis is the stack trace on that call:\r\n```\r\n2015-06-03 09:48:29,086 - ERROR - wmtsproxy_restapi.app - 'NoneType' object has no attribute 'findtext'\r\nTraceback (most recent call last):\r\n File \"/opt/mapproxy/lib/python2.7/site-packages/wmtsproxy_restapi/app.py\", line 49, in list_layers\r\n   cap = cap_dict(cap_url)\r\n File \"/opt/mapproxy/lib/python2.7/site-packages/wmtsproxy/capabilities.py\", line 63, in cap_dict\r\n   return wms_cap_dict(cap)\r\n File \"/opt/mapproxy/lib/python2.7/site-packages/wmtsproxy/capabilities.py\", line 144, in wms_cap_dict\r\n   'title': cap.metadata()['title'],\r\n File \"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/util/ext/wmsparse/parse.py\", line 51, in metadata\r\n   md['contact'] = self.parse_contact()\r\n File \"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/util/ext/wmsparse/parse.py\", line 57, in parse_contact\r\n   person = self.findtext(elem, 'ContactPersonPrimary/ContactPerson'),\r\n File \"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/util/ext/wmsparse/parse.py\", line 28, in findtext\r\n   return tree.findtext(self.resolve_ns(xpath))\r\nAttributeError: 'NoneType' object has no attribute 'findtext'\r\n```\r\n\r\nPython is not my primary language unfortunately, but following the stack trace it looks like it's a problem on the mapproxy lib, but not sure if it's really because there's a bug there or the problem is higher up?"},"comment":{"url":"https://api.github.com/repos/omniscale/wmtsproxy/issues/comments/108299677","html_url":"https://github.com/omniscale/wmtsproxy/issues/2#issuecomment-108299677","issue_url":"https://api.github.com/repos/omniscale/wmtsproxy/issues/2","id":108299677,"user":{"login":"olt","id":235174,"avatar_url":"https://avatars.githubusercontent.com/u/235174?v=3","gravatar_id":"","url":"https://api.github.com/users/olt","html_url":"https://github.com/olt","followers_url":"https://api.github.com/users/olt/followers","following_url":"https://api.github.com/users/olt/following{/other_user}","gists_url":"https://api.github.com/users/olt/gists{/gist_id}","starred_url":"https://api.github.com/users/olt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olt/subscriptions","organizations_url":"https://api.github.com/users/olt/orgs","repos_url":"https://api.github.com/users/olt/repos","events_url":"https://api.github.com/users/olt/events{/privacy}","received_events_url":"https://api.github.com/users/olt/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T11:05:37Z","updated_at":"2015-06-03T11:05:37Z","body":"The service doesn't have ContactInformation but the parser expected them. This is fixed in https://github.com/mapproxy/mapproxy/commit/564ecbead8d3fa93416f6b100a30a15a2072c07b"}}