<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>I have been trying to add ArcGIS Rest resources to a deployment of 2.7.0. <br></div><div><br></div><div>I have not found any documentation on the use of this feature but have managed to add a mapserver as well as a featureserver as remote services but cannot import any resources. The interface displays the following messages:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>no resources can be imported
</div></blockquote><div>and <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Cannot Parse Any Resource At This Time!</div></blockquote><div>Stdout has the following message:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div></blockquote><div><blockquote>Internal Server Error: /services/3/harvest<br>Traceback (most recent call last):<br> File "/home/mike/.virtualenvs/geonode/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner<br> response = get_response(request)<br> File "/home/mike/.virtualenvs/geonode/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response<br> response = self._get_response(request)<br> File "/home/mike/.virtualenvs/geonode/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response<br> response = self.process_exception_by_middleware(e, request)<br> File "/home/mike/.virtualenvs/geonode/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response<br> response = wrapped_callback(request, *callback_args, **callback_kwargs)<br> File "/home/mike/.virtualenvs/geonode/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view<br> return view_func(request, *args, **kwargs)<br> File "/home/mike/geonode/geonode/services/views.py", line 175, in harvest_resources<br> for id in _gen_harvestable_ids(requested, available_resources):<br> File "/home/mike/geonode/geonode/services/views.py", line 233, in _gen_harvestable_ids<br> available_resource_ids = [str(<a href="http://r.id">r.id</a>) for r in available_resources]<br>TypeError: 'NoneType' object is not iterable<br>"POST /services/3/harvest HTTP/1.1" 500 135313<br>Traceback (most recent call last):<br> File "/home/mike/geonode/geonode/services/serviceprocessors/arcgis.py", line 207, in has_resources<br> return True if len(self.parsed_service.layers) > 0 else False<br> File "/home/mike/.virtualenvs/geonode/local/lib/python2.7/site-packages/arcrest/server.py", line 1008, in layers<br> for layer in self._json_struct['layers']]<br>KeyError: 'layers'<br></blockquote>I am guessing that the issue is the arcrest python package that is being used to harvest layers from the rest services. That package has been superseded by the ArcGIS API for Python: <a href="https://github.com/Esri/arcgis-python-api">https://github.com/Esri/arcgis-python-api</a></div><div><br></div><div>I was wondering if anyone had attempted to replace the arcrest package with the new API? <br></div></div></div></div></div>