Skip to content

[BUG] seemingly intermittent errors in readthedocs documentation #1022

Description

@danielfromearth

Is this issue already tracked somewhere, or is this a new report?

  • I've reviewed existing issues and couldn't find a duplicate for this problem.

Current Behavior

Some of the tutorials—as of writing this: emit-earthaccess, SSL, and virtual_dataset_tutorial_with_TEMPO_Level3—which were showing up without any errors recently, are now showing the following error after earthaccess.search_data() code cells, seemingly without there being any changes to the documentation.

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
File ~/checkouts/readthedocs.org/user_builds/earthaccess/envs/latest/lib/python3.11/site-packages/earthaccess/search.py:463, in DataGranules.hits(self)
    462 try:
--> 463     response.raise_for_status()
    464 except requests.exceptions.HTTPError as ex:

File ~/checkouts/readthedocs.org/user_builds/earthaccess/envs/latest/lib/python3.11/site-packages/requests/models.py:1024, in Response.raise_for_status(self)
   1023 if http_error_msg:
-> 1024     raise HTTPError(http_error_msg, response=self)

HTTPError: 500 Server Error: Server Error for url: https://cmr.earthdata.nasa.gov/search/granules.umm_json?short_name=EMITL2ARFL&bounding_box=-82.05,-3.17,-76.94,-0.52&page_size=0

The above exception was the direct cause of the following exception:

RuntimeError                              Traceback (most recent call last)
Cell In[3], line 2
      1 # ~Ecuador = -82.05,-3.17,-76.94,-0.52
----> 2 granules = earthaccess.search_data(
      3     short_name="EMITL2ARFL",
      4     bounding_box=(-82.05, -3.17, -76.94, -0.52),
      5     count=10,
      6 )
      7 print(len(granules))

File ~/checkouts/readthedocs.org/user_builds/earthaccess/envs/latest/lib/python3.11/site-packages/earthaccess/api.py:138, in search_data(count, **kwargs)
    136 else:
    137     query = DataGranules().parameters(**kwargs)
--> 138 granules_found = query.hits()
    139 logger.info(f"Granules found: {granules_found}")
    140 if count > 0:

File ~/checkouts/readthedocs.org/user_builds/earthaccess/envs/latest/lib/python3.11/site-packages/earthaccess/search.py:466, in DataGranules.hits(self)
    464 except requests.exceptions.HTTPError as ex:
    465     if ex.response is not None:
--> 466         raise RuntimeError(ex.response.text) from ex
    467     else:
    468         raise RuntimeError(str(ex)) from ex

RuntimeError: {"errors":["An Internal Error has occurred."]}

Expected Behavior

Expecting tutorial notebooks to run without error.

Perhaps it's a CMR or Earthdata-related error. Though if that is the case, maybe there is something more we could do to clarify that that was the source of error, and not lead folks to believe the tutorial's code is problematic?

Steps To Reproduce

Readthedocs build.

Environment

GitHub/Readthedocs

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: triageMore information is needed to determine whether this issue should be worked or closed.type: bugBugs causing incorrect or unexpected behavior. Applied automatically if using Bug template.

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions