HttpError Traceback

11 views
Skip to first unread message

Florent Demelezi

unread,
Oct 17, 2022, 8:41:22 PM10/17/22
to Anaconda - Public
Dear all,
I have this issue i think with this library or folder.
Tried many times since yesterday and though it's only one package but now it's repeating.

Apologies but i am basic to python and anaconda.

This is the error i get:
-----
HttpError Traceback (most recent call last) File ~\Anaconda3\lib\site-packages\ee\data.py:328, in _execute_cloud_call(call, num_retries) 327 try: --> 328 return call.execute(num_retries=num_retries) 329 except googleapiclient.errors.HttpError as e: File ~\Anaconda3\lib\site-packages\googleapiclient\_helpers.py:134, in positional.<locals>.positional_decorator.<locals>.positional_wrapper(*args, **kwargs) 133 logger.warning(message) --> 134 return wrapped(*args, **kwargs) File ~\Anaconda3\lib\site-packages\googleapiclient\http.py:915, in HttpRequest.execute(self, http, num_retries) 914 if resp.status >= 300: --> 915 raise HttpError(resp, content, uri=self.uri) 916 return self.postproc(resp, content) HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps?fields=name&alt=json returned "Collection.loadTable: Collection asset 'TIGER/2008/States' not found.". Details: "Collection.loadTable: Collection asset 'TIGER/2008/States' not found."> During handling of the above exception, another exception occurred: EEException Traceback (most recent call last) Input In [13], in <cell line: 10>() 5 vis_params = { 6 'min': 0, 7 'max': 4000, 8 'palette': ['006633', 'E5FFCC','662A00','D8D8D8','F5F5F5']} 9 Map.addLayer(dem, vis_params,'SRTM DEM',True, 1) ---> 10 Map.addLayer(states, {},'US STATES', True) 11 Map File ~\Anaconda3\lib\site-packages\geemap\geemap.py:1489, in Map.add_ee_layer(self, ee_object, vis_params, name, shown, opacity) 1484 elif not isinstance(vis_params["palette"], list): 1485 raise ValueError( 1486 "The palette must be a list of colors or a string or a Box object." 1487 ) -> 1489 map_id_dict = ee.Image(image).getMapId(vis_params) 1490 tile_layer = ipyleaflet.TileLayer( 1491 url=map_id_dict["tile_fetcher"].url_format, 1492 attribution="Google Earth Engine", (...) 1496 max_zoom=24, 1497 ) 1499 layer = self.find_layer(name=name) File ~\Anaconda3\lib\site-packages\ee\image.py:132, in Image.getMapId(self, vis_params) 130 vis_image, request = self._apply_visualization(vis_params) 131 request['image'] = vis_image --> 132 response = data.getMapId(request) 133 response['image'] = self 134 return response File ~\Anaconda3\lib\site-packages\ee\data.py:586, in getMapId(params) 583 request['visualizationOptions'] = visualizationOptions 584 # Make it return only the name field, as otherwise it echoes the entire 585 # request, which might be large. --> 586 result = _execute_cloud_call( 587 _get_cloud_api_resource().projects().maps().create( 588 parent=_get_projects_path(), fields='name', body=request)) 589 map_name = result['name'] 590 url_format = '%s/%s/%s/tiles/{z}/{x}/{y}' % ( 591 _tile_base_url, _cloud_api_utils.VERSION, map_name) File ~\Anaconda3\lib\site-packages\ee\data.py:330, in _execute_cloud_call(call, num_retries) 328 return call.execute(num_retries=num_retries) 329 except googleapiclient.errors.HttpError as e: --> 330 raise _translate_cloud_exception(e) EEException: Collection.loadTable: Collection asset 'TIGER/2008/States' not found. 
Reply all
Reply to author
Forward
0 new messages