-
Notifications
You must be signed in to change notification settings - Fork 6
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
http error 407 Proxy Authentication Required / Plugin does not use QGIS proxy settings #18
Comments
We have never tested the plugin with a proxy. We were not even aware that there were Proxy Settings for QGIS. We will look into it. Thank you for the suggestion |
It appears we would need to read the proxy settings from QGIS and then configure urllib before starting the SPARQLWrapper request. |
We have added the handling of QGIS ProxySettings in our code, but currently have no means to test it. |
@situx Thanks a lot! Testing should be possible for me after next week. |
@situx instead of using urllib it would be nice to use the QgsNetworkAccessManager classes... |
Thank you for the suggestion. |
Any suggestion in how rdflib could and should be modified? |
rdflib is a multiple purpose library for querying SPARQL endpoints. That is probably also the reason for them to use urllib2. I think rdflib would need to be modified to accept other providers of sending HTTP requests and to make those configurable to make this setup work. |
FYI I've added a comment to rdllib repo in an issue about modularisation of the module: |
We have created and released a workaround which might work for proxies in Version 0.12 and would appreciate feedback as we have no means to test it currently. |
For all the public SPARQL services I get http error 407 Proxy Authentication Required.
The plugin therefore does not seem to use the QGIS proxy settings.
What is necessary to change this? Are modifications of SPARQLWrapper required?
See also this old information:
https://stackoverflow.com/questions/23041066/setting-proxy-parameter-in-qgis-plugins-how-to
elpaso/qgis-geocoding#6
The text was updated successfully, but these errors were encountered: