EarthExplorer initialization error when trying to download data #91
Unanswered
hussain-catalyst
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use this library to download Landsat data. The search query works fine and I get the results. However, when using EarthExplorer to download the scene, I am seeing the error "list index out of range" in the function "login" when calling "_get_tokens(rsp.text)".
I saw the error generated at "ncform = re.findall(r'name="__ncforminfo" value="(.+?)"', body)[0]" in the following function.
Seems __ncforminfo is not found in the body.
def _get_tokens(body):
"""Get
csrf_token
and__ncforminfo
."""csrf = re.findall(r'name="csrf" value="(.+?)"', body)[0]
ncform = re.findall(r'name="__ncforminfo" value="(.+?)"', body)[0]
Please advise.
Hussain
Beta Was this translation helpful? Give feedback.
All reactions