Comments (12)
Not yet solved
from landsatxplore.
I think just remove ncform in function get_token, it will work.
def _get_tokens(body): """Get
csrf_tokenand
__ncforminfo.""" csrf = re.findall(r'name="csrf" value="(.+?)"', body)[0] ncform = re.findall(r'name="__ncforminfo" value="(.+?)"', body)[0]
yes it works!
just change function _get_tokens to:
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]
if not csrf:
raise EarthExplorerError("EE: login failed (csrf token not found).")
# if not ncform:
# raise EarthExplorerError("EE: login failed (ncforminfo not found).")
ncform = None
return csrf, ncform
now I am able to download successfully.
but why is this?
from landsatxplore.
This is a crucial problem that makes this beautiful tool literally unusable. Any suggestion by the developer @yannforget?
from landsatxplore.
I think just remove ncform in function get_token, it will work.
def _get_tokens(body): """Get
csrf_tokenand
__ncforminfo.""" csrf = re.findall(r'name="csrf" value="(.+?)"', body)[0] ncform = re.findall(r'name="__ncforminfo" value="(.+?)"', body)[0]
from landsatxplore.
Also I have just noticed this,
There is a scheduled system outage for Thursday, July 14, 2022, from 6:00 PM CDT to 8:00 PM CDT. Downloads may be intermittent during this time.
from the website https://earthexplorer.usgs.gov
from landsatxplore.
Same issue here! Any chance they changed something during the system maintenance?
from landsatxplore.
I believe so. They always change the platform, and it always results in backwards compatibility issues. This is true for the API they provide,
the usgs-machine-to-machine-API
, which now fails with the same error.
INPUT_PARAMETER_INVALID - Scene list does not contain any valid scenes
from landsatxplore.
An update on this: there are some changes on the scene list at https://earthexplorer.usgs.gov/order/index/. You need to sign in. It looks like you will need to order them from the website. The Machine-to-Machine (M2M) API doesn't seem updated. Hope it's not more manual work than it is currently.
from landsatxplore.
hi,Did you solve the problem?
from landsatxplore.
hi,Did you solve the problem?
from landsatxplore.
I have the same problem.
from landsatxplore.
Hi,
I encountered the same issue today.
It seems this issue is fixed by @jcintasr PR #75.
from landsatxplore.
Related Issues (20)
- No product available for Landsat 9 after September 2022 HOT 3
- "EE: login failed." error when downloading files HOT 1
- Make progress bar optional.
- download with landsatxplore HOT 8
- KeyError: 'content-disposition' HOT 2
- Downloading image by row and path HOT 1
- Download is not available HOT 1
- it seems that the function 'Earth_Down = EarthExplorer(username, password)' does not work HOT 3
- Update download ID keys for Landsat 8/9
- KeyError: 'content-disposition' when trying to download HOT 2
- Download the single band file only for each scene, not the whole scene bundle file.
- Why the max download is only 100 products HOT 1
- api.search() not returning level 2 products HOT 4
- Download is not available HOT 10
- landsatxplore.errors.USGSError: DATASET_AUTH: Dataset status is unavailable to this user HOT 6
- how to download single or several bands instead of whole bands and metadata? HOT 3
- EarthExplorer() function does not work HOT 4
- Error When Downloading: Unable to find product configuration HOT 2
- Error raised but scene was successfully downloaded for Landsat 8
- Error when downloading: None of the archived ids succeeded! Update necessary! HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from landsatxplore.