<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Yes, please file an issue on GitHub. Thanks Maxime</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont"><br />
Francesco</div>
</div>
<div name="messageReplySection">Il 4 dic 2019, 19:41 +0100, Maxime Audet-Roberge <maximeaudetr@hotmail.com>, ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">Good day geonode users,</span><br /></div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto"><span style="font-family: Calibri, sans-serif; font-size: 11pt;"><br /></span></div>
<div id="id-d15341dc-e025-45c3-a589-03ee00a94d16" class="ms-outlook-mobile-reference-message" dir="auto" style="text-align: left;">
<div class="WordSection1" dir="auto" style="text-align: left;">
<p class="MsoNormal"></p>
<p class="MsoNormal">I am running geonode project 2.10.1 on a Ubuntu 18.04 VM. I have issues with some layers from remote services. </p>
<p class="MsoNormal"><br /></p>
<p class="MsoNormal">Here is an example:</p>
<p class="MsoNormal">WMS URL: https://maps.geogratis.gc.ca/wms/hydro_network_en</p>
<p class="MsoNormal">Layer name: nhn:nhn:hydrography:waterbody_2</p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><br /></p>
<p class="MsoNormal">When I try to access the page at http://localhost:8000/layers/nhn:nhn:network:flowdirection_1<span style="font-size: 11pt;">I have this error:</span></p>
<p class="MsoNormal"></p>
<p class="MsoNormal">Traceback:</p>
<p class="MsoNormal"></p>
<p class="MsoNormal">File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner</p>
<p class="MsoNormal"> 41. response = get_response(request)</p>
<p class="MsoNormal">File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response</p>
<p class="MsoNormal"> 249. response = self._get_response(request)</p>
<p class="MsoNormal">File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response</p>
<p class="MsoNormal"> 187. response = self.process_exception_by_middleware(e, request)</p>
<p class="MsoNormal">File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response</p>
<p class="MsoNormal"> 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)</p>
<p class="MsoNormal">File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/geonode/layers/views.py" in layer_detail</p>
<p class="MsoNormal"> 466. ":") if ":" in layer.alternate else (None, layer.alternate)</p>
<p class="MsoNormal">Exception Type: ValueError at /layers/nhn:nhn:network:flowdirection_1</p>
<p class="MsoNormal">Exception Value: too many values to unpack</p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><br /></p>
<p class="MsoNormal">The lines in views.py are:</p>
<p class="MsoNormal">491. if check_ogc_backend(geoserver.BACKEND_PACKAGE):</p>
<p class="MsoNormal">492. from geonode.geoserver.views import get_capabilities</p>
<p class="MsoNormal">493. workspace, layername = layer.alternate.split(</p>
<p class="MsoNormal">498. ":") if ":" in layer.alternate else (None, layer.alternate)</p>
<p class="MsoNormal"></p>
<p class="MsoNormal">I see that the layer alternate name from the remote service have 3x “:” in it and that the split is looking for only one.</p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><br /></p>
<p class="MsoNormal">Should I enter this issue in the GitHub list?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks a lot,</p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><br /></p>
<p class="MsoNormal">Maxime</p>
<p class="MsoNormal"> </p>
</div>
<br /></div>
<style>
<![CDATA[
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri",sans-serif;
color:windowtext}
.MsoChpDefault
{}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
{}
-->
]]>
</style>
_______________________________________________<br />
geonode-users mailing list<br />
geonode-users@lists.osgeo.org<br />
https://lists.osgeo.org/mailman/listinfo/geonode-users<br /></blockquote>
</div>
</body>
</html>