Error with landsatxplore API #56
Unanswered
deepikas2010
asked this question in
Q&A
Replies: 3 comments 3 replies
-
I am also getting the same error. Have you solved it? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Try download_landsat_scenes.py.
…On Wed, Jul 28, 2021 at 11:30 AM deepikas2010 ***@***.***> wrote:
Hi,
I couldn't resolve it. I'm still facing the issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#56 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIVNZEREPLZSBGHBOAHFASLTZ7E33ANCNFSM5A3RS5XQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
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,
The code was working before without any issue but I'm getting the below error today. Could you please help me to resolve this issue?
api = landsatxplore.api.API(username,password)
File "/home/deepika/.local/lib/python3.6/site-packages/landsatxplore/api.py", line 28, in init
self.key = self.login(username, password)
File "/home/deepika/.local/lib/python3.6/site-packages/landsatxplore/api.py", line 48, in login
response = requests.post(self.endpoint + 'login?', data=data).json()
File "/home/deepika/.local/lib/python3.6/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Beta Was this translation helpful? Give feedback.
All reactions