We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to run the demo scripts I get this error. Have I made a blunder? Or is EarthExplorer blocking access?
The operative part seems to be this:
<h3>Web Page Blocked!</h3><div class="notice"><p>The page cannot be displayed. Please contact the administrator for additional information.</p><p>URL: earthexplorer.usgs.gov/inventory/json/v/1.4.1/login<br />
Full error below. Note that I deleted two large character strings and my IP address.
Traceback (most recent call last): File "/home/bpl7/.local/lib/python3.6/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "landsat_api.py", line 7, in <module> api = API(username, password) File "/home/bpl7/.local/lib/python3.6/site-packages/landsatxplore/api.py", line 28, in __init__ self.key = self.login(username, password) File "/home/bpl7/.local/lib/python3.6/site-packages/landsatxplore/api.py", line 48, in login response = requests.post(self.endpoint + 'login?', data=data).json() File "/home/bpl7/.local/lib/python3.6/site-packages/requests/models.py", line 917, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: [Errno Expecting value] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css"> html, body { margin: 0; padding: 0; font-family: Verdana, Arial, sans-serif; font-size: 10pt; background-color: #ffffff;} h1, h2 { height: 82px; text-indent: -999em; margin: 0; padding: 0; margin: 0; } div { margin: 0; padding: 0; } div.header { background: url(data:image/png;base64, [long string of letters and numbers...] 0 0 repeat-x; height: 82px; } div.sidebar { width: 195px; height: 200px; float: left; } div.main { padding: 5px; margin-left: 195px; } div.buttons { margin-top: 30px; text-align: right; } h3 { margin: 36px 0; font-size: 16pt; } .blocked h3 { color: #c00; } .authenticate h3 { color: #36c; } h2.fgd_icon { background: url(data:image/png;base64, [long string of letters and numbers...] -166px repeat-x; width: 90px; height: 92px; margin: 48px auto; } .blocked h2.fgd_icon { background-position: 0 -166px; } .authenticate h2.fgd_icon { background-position: -89px -166px; } form { width: 300px; margin: 30px 0; } label { display: block; width: 300px; margin: 5px 0; line-height: 25px; } label input { width: 200px; border: 1px solid #7f9db9; height: 20px; float: right; }</style><title> The URL you requested has been blocked </title></head><body class="block"><div class="header"></div><div class="sidebar"><h2 class="fgd_icon">block</h2></div><div class="main"><h3>Web Page Blocked!</h3><div class="notice"><p>The page cannot be displayed. Please contact the administrator for additional information.</p><p>URL: earthexplorer.usgs.gov/inventory/json/v/1.4.1/login<br /><br/>Client IP: [MY IP ADDRESS I DELETED THIS SO YOU CANT SEE IT...] <br/>Attack ID: 20000007<br/>Message ID: 011869557115</p><p></p></div></div></body></html>: 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I try to run the demo scripts I get this error. Have I made a blunder? Or is EarthExplorer blocking access?
The operative part seems to be this:
<h3>Web Page Blocked!</h3><div class="notice"><p>The page cannot be displayed. Please contact the administrator for additional information.</p><p>URL: earthexplorer.usgs.gov/inventory/json/v/1.4.1/login<br />
Full error below. Note that I deleted two large character strings and my IP address.
The text was updated successfully, but these errors were encountered: