-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
MetaSearch: Allow use of proxy #53159
Comments
@bstroebl, as a workaround, does setting the environment varible HTTP_PROXY or HTTPS_PROXY work for your use case? See https://requests.readthedocs.io/en/latest/user/advanced/?highlight=proxies#proxies and https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#system-settings |
@agiudiceandrea Thank you for your reply. Do you mean if setting the environment variable works technically or if it is feasible? Anyways, currently there is no defined use case. I am just checking out, if MeaSearch could be of use in an administrative context for several administrations of which I have neither information on the technical settings nor the potential users' personal capabilities. I am convinced at least some of them are behind a proxy but I doubt setting environment variables on every user's client is feasible. On the other hand I would expect them to be able to configure QGIS' proxy settings otherwise no Services like WMS would be available from servers on the internet. |
@bstroebl have you tested if setting such environment variable(s) in QGIS makes the MetaSearch plugin able to connect to Internet through a proxy? If not, could you please test it? |
Will try to test as I have to check out the proxy server's address first. Stay tuned. |
Sorry, no news on this topic |
Setting these doesn't help in my case (simple http proxy without auth). This should be labeled as a bug, there is already some logic to use QGIS proxy settings: QGIS/python/plugins/MetaSearch/dialogs/maindialog.py Lines 955 to 980 in d2a173f
I've verified that proxy settings are correctly read in the code above by MetaSearch but it's not possible to make a connection to any service behind a proxy. @tomkralidis any idea / hint what could be the issue? |
@pathmapper, have you set the |
@pathmapper, so this means that setting the *_PROXY environment variable actually changes the connection behavior. Anyway looking at the screenshots, it seems to me such variable are not properly set: they miss the "scheme" ( |
@agiudiceandrea thanks, adding So we are having a workaround 👍 Not sure if this fixes the use case of @bstroebl. |
Feature description
The MeaSeach core plugin does not work if the client running QGIS is behind a proxy. Best solution would be to use the proxy set in QGIS' network settings. I assume this would need the implementation of #24214 . A workaround could be to configure a proxy in the plugin's settings.
As is the plugin is unusable for any institutional QGIS' users, normally being situated behind a proxy.
Additional context
No response
The text was updated successfully, but these errors were encountered: