Closed d-lombardi-a closed 9 months ago
Thank you, I'm glad that you appreciate the plugin. About the issue, it is quite strange, I'll look into this.
I'm closing this because of the new version 8 of SCP. Please reopen it if it is still relevant in the new version. Thank you!
Trying to search and download scihub.copernicus.eu/apihub products from behind an http proxy fails.
I found an issue (possibly) in https://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/blob/4d861573d099c09b0d7ff4950419fdcaa40e4390/core/utils.py#L312-L314 where the calls to
cfg.urllibSCP.proxyHandler
should be replaced withcfg.urllibSCP.request.proxyHandler
.Modifying the source code, nonetheless, the search and download still fails with qgis giving a
(source IP is the private ip of my machine and destination IP is the pubblic IP of scihub.copernicus.eu)
2021-03-22T12:41:15 CRITICAL Error [50] : Internet error:
. Wiresharking the connection attempt, log shows it's trying to go directly bypassing the proxy:Trying to replicate the SCP access&search mechanism with the following custom test script ( where i found useful to add https entry to the proxyHandler's proxies dictionary parameter, leaving unchanged the destination proxy since in my case it's the same http:8080 proxy that manages both http and https requests):
the access to any http and https web resources (from the custom script) results in http 200 OK responses except for any request made to scihub.copernicus.eu/apihub/search that returns http error 404 not found:
Surprisingly enough the very same requests made from browsers gives the expected searching results.
Any idea on what's going wrong? Thanks. Further thanks for the superlative plugin you've developed.