-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Connecting to Sentinel hub with a proxy #38
Comments
Hi, could you send a capture of the settings you are using? Could you tell which kind of proxy you are using? |
The proxy settings are saved and taken from a qsettings file. This file is a .config or .ini that can be found in a hidden folder in windows for example C:\Users<YourUsername>\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\QGIS3.ini. Could you search for 'proxy' in this file and tell me if your configurations are stored there? |
Hello,
This is my proxy settings :
QgsOptionsBase\grpProxy\collapsed=false
Search "proxy" (14 hits in 1 file of 1 searched)
C:\Users\xxxx\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\QGIS3.ini (14 hits)
Line 85: QgsOptionsBase\grpProxy\collapsed=false
Line 548: plugin_installer\seen_plugins=db_manager, MetaSearch, processing, latlontools, quick_map_services, QuickWKT, MemoryLayerSaver, simplesvg, valuetool, GeoCoding, GroupStats, timemanager, menu_from_project, Hotlink, GarminCustomMap, loadthemall, RemoveEmptyLayers, mask, dimensioning, lizmap, MultiEdit, profiletool, midvatten, qNote, mmqgis, wfsclient, plugin_reloader, quicksaveqml, osmpoly_export, pgversion, inasafe, qgsAzimuth, qgiscloud, qgSurf, DirectionalSlope, pstimeseries, VectorFieldCalc, pointsamplingtool, numericalDigitize, contour, LecoS, crayfish, pdokservicesplugin, Cxf_in, flowTrace, qtiles, sextante_animove, geospatialsimulation, plaingeometryeditor, tmsforkorea, kuw_filter, SemiAutomaticClassificationPlugin, splitmultipart, DistroMap, shapefile_encoding_fixer, zoomrc, qProf, BulkVectorExport, DataDrivenInputMask, ContrastHomogenizer, ZoomToPostcode, DigitizingTools, nominatim, LandXml, qchainage, VoGisProfilTool, send2google_earth, BufferByPercentage, pgRoutingLayer, htpgeoprocessor, cadastre, geopunt4Qgis, shp_to_obs, PPConverter_20, Qgis2threejs, Video_UAV_Tracker, realcentroid, b4udignl2, ViewshedAnalysis, joinmultiplelines, lrs, spline, SLD4raster, opeNoise, go2streetview, attributePainter, StreetView, Vgi2ShpConverter, EasyCustomLabeling, AreaAlongVector, clickfu, postgisQueryBuilder, IDECanarias, StreamFeatureExtractor, VectorBender, interlis, SGDiagramDownloader, autoSaver, zoomtopaste, SVG2ColoR, clipper, ConstraintChecker, PointConnector, MapsPrinter, QuickOSM, alkisplugin, ArcheoCAD, DissolveWithStats, svir, NNJoin, SwapVectorDirection, AzimuthDistanceCalculator, temporalprofiletool, pickLayer, MultipleLayerSelection, QgsWcpsClient1, VectorMCDA, ProfileFromPoints, TomBio, networks, processing_workflow, MBTiles2img, ClipToHemisphere, Redistricting, concavehull, survey_design, scpplugin, MultiDistanceBuffer, FeatureGridCreator, OSTranslatorII, postgis_geoprocessing, instantprint, ntv2_transformations, tiss, DsgTools, catalogotf_plugin, beePen, OSMDownloader, LineDirectionHist ...
Line 807: networkAndProxy\networkTimeout=60000
Line 813: networkAndProxy\userAgent=Mozilla/5.0
Line 1373: [proxy]
Line 1375: proxyEnabled=true
Line 1376: proxyHost=proxy.shom.fr
Line 1376: proxyHost=proxy.shom.fr
Line 1377: proxyPort=3128
Line 1378: proxyUser=
Line 1379: proxyPassword=
Line 1380: proxyType=DefaultProxy
Line 1380: proxyType=DefaultProxy
Line 1381: ***@***.***()
De: "Adrián Di Paolo" ***@***.***>
À: "sentinel-hub/sentinelhub-qgis-plugin" ***@***.***>
Cc: "Camille Netter" ***@***.***>, "Author" ***@***.***>
Envoyé: Mercredi 6 Décembre 2023 22:40:56
Objet: Re: [sentinel-hub/sentinelhub-qgis-plugin] Connecting to Sentinel hub with a proxy (Issue #38)
The proxy settings are saved and taken from a qsettings file. This file is a .config or .ini that can be found in a hidden folder in windows for example C:\Users<YourUsername>\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\QGIS3.ini. Could you search for 'proxy' in this file and tell me if your configurations are stored there?
—
Reply to this email directly, [ #38 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/BD6T6JMID5SWDMAA6DLSFD3YIDQ6RAVCNFSM6AAAAAA7K25VCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTG4ZTIMRSGQ | unsubscribe ] .
You are receiving this because you authored the thread. Message ID: <sentinel-hub/sentinelhub-qgis-plugin/issues/38/1843734224 @ github . com>
|
Hi, thank you for reporting this. We are trying to replicate this issue to find a solution. Once we find a fix for this we are going to reach you back. |
Hello, |
I can not connect the plugin to the service due to a proxy. I try "default" proxy and "httpproxy" as settings.

It could be due to urllib to ping the website and could be resolve by QgsNetworkAcessManager like in the documentation to publish plugins :
Plugins should make use of QgsNetworkAccessManager instead of using urllib2/requests/etc... which often fail to use correct proxy settings.
2023-11-14T09:44:15 WARNING Traceback (most recent call last):
File "C:\PROGRA
1\QGIS321.0\apps\Python39\lib\site-packages\urllib3\connection.py", line 159, in _new_connconn = connection.create_connection(
File "C:\PROGRA
1\QGIS321.0\apps\Python39\lib\site-packages\urllib3\util\connection.py", line 84, in create_connectionraise err
File "C:\PROGRA
1\QGIS321.0\apps\Python39\lib\site-packages\urllib3\util\connection.py", line 74, in create_connectionsock.connect(sa)
ConnectionRefusedError: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée
The text was updated successfully, but these errors were encountered: