You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug comes from the fact that the curl command does not create any output due to the SSL_read error. Any idea on how to solve that @olivierhagolle ?
@pgmgsw I observed that making the request directly inside my browser was working. So by adding -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36" to the cURL command, it seems to do the trick
Hi,
I'm trying to upload images, but the script says I can't find the json file.
here's the request I make and the answer I get:
python ./theia_download.py -t T31UET -c SENTINEL2 -a config_theia.cfg -d 2019-01-01 -f 2020-02-25 -p SENTINEL2A -m 50 -r 51
Get theia single sign on token
Done
https://theia.cnes.fr/atdistrib/resto2/api/collections/SENTINEL2/search.json?location=T31UET&platform=SENTINEL2A&startDate=2019-01-01&completionDate=2020-02-25&maxRecords=500&processingLevel=LEVEL2A&relat
iveOrbitNumber=51
curl -k -o search.json "https://theia.cnes.fr/atdistrib/resto2/api/collections/SENTINEL2/search.json?location=T31UET&platform=SENTINEL2A&startDate=2019-01-01&completionDate=2020-02-25&maxRecords=500&proc
essingLevel=LEVEL2A&relativeOrbitNumber=51"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
Traceback (most recent call last):
File "./theia_download.py", line 292, in
with open('search.json') as data_file:
FileNotFoundError: [Errno 2] No such file or directory: 'search.json'
I had used this kind of request successfully in September, but it doesn't work anymore.
I downloaded the latest version of the script on GitHub and checked that my theia account was still valid; but it doesn't work any better...
Do I need to change something in the query syntax?
Thank you
The text was updated successfully, but these errors were encountered: