-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add GeoJSON from a https URL on Windows fails due to a SSL certificate problem #25843
Comments
Author Name: David Piles (David Piles)
|
Author Name: Nyall Dawson (@nyalldawson) Just a hunch - is this geojson from fulcrum? Try this: Inside QGIS, go to Options - System. Under "environment" add a new line, with VARIABLE: GDAL_HTTP_USERAGENT ok out of options, restart qgis. It'll work ok after that. Seems like something at fulcrum is blocking the user agent used by gdal.
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: David Piles (David Piles) Thx
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Richard Duivenvoorde (@rduivenvoorde) You are not behind a proxy are you? Can you provide the url you are testing? Or the json you receive when you download it in your browser? As a test I just scribbled a line in http://geojson.io and save it on my homeserver: http://duif.net/test.json That just works for me both in 2.18 and in master. Can you check those (line around europe) |
Author Name: David Piles (David Piles) I'm not behind a proxi. |
Author Name: Richard Duivenvoorde (@rduivenvoorde) Ok, confirmed here on a recent Windows osgeo4w64 build. In the message console it says:
Seems the problem seems to be the httpS connection. In Linux this works just fine. To test on windows: http://duif.net/Testing_QGIS1.geojson works just fine. Tried to update to latest 2.18, but did not help. Also tested current master/2.99 in same environment: Same problem! QGIS version
|
Author Name: Richard Duivenvoorde (@rduivenvoorde) Adding another observation: Plain ogrinf generates the same error:
|
Author Name: Tom Chadwin (@tomchadwin) Does this help when trying ogrinfo: --config GDAL_HTTP_UNSAFESSL YES Source: https://toolkit.data.wa.gov.au/hc/en-gb/articles/115000819754 EDIT: A better source on gdal-dev, with input from Even is here: https://lists.osgeo.org/pipermail/gdal-dev/2017-June/046714.html |
Author Name: Luigi Pirelli (@luipir) May you check a workaround in windows? In a win installation that expose the porblem, try to load the geojson in a Explorer (not other browser... only Explorer!) The rational is that a CAPI enabled Browser, reciving a Unsercognised CA, try to ask to the M$ services to check if the CA is trustable, it M$ say yes, the CA is added in the CA lists. let us know if this warkaround works... if so, we can follow with possibile solutions. |
Author Name: Richard Duivenvoorde (@rduivenvoorde) @tom Chadwin: yes that helped (for ogrinfo)... |
Author Name: Richard Duivenvoorde (@rduivenvoorde) @luigi tried your test also here (by the way I'm on a recent new/updtodate WIN10 VM here, not a fully registred Windows install). Loaded the https url succesfully in Explorer... that made my (by accident) already running QGIS 2.18 crash instantanious?! :( But restarting QGIS it still gives the error, and also the master version of QGIS. Not that the duif.net cert is a Letsencrytp certificate, while the https url from the original issuer (https://strageo.es/wp-content/uploads/datos/Testing_QGIS1.geojson) is a Digicert certificate. Both failing (in my and his environment). |
Author Name: Geoffrey Baum (@geofbaum) Nyall Dawson wrote:
A Fulcrum GeoJSON opens for me in QGIS 2.18.7 but not within QGIS 3.0, pretty much any QGIS after 2.18.8 I believe from other discussions I've seen online. Also your advice does not seem to work in any other versions if added to the Environment variables. |
Author Name: joe larson (@oeon) I wanted to checkin here to see if there's any update to this issue or advice on how we might be able to overcome this (disclaimer, I work on the Fulcrum product). This is currently still an issue with Windows 2.x LTR and 3.x, but if you go back to 2.16.3-1 it is functional. In my testing, none of the suggestions mentioned in this thread help in getting these data sources to be recognized. |
Author Name: Calvin Metcalf (Calvin Metcalf) I'm seeing this for google URLs too, it was a fresh install of QGIS and trying to load some geojson from a url got the |
Author Name: Giovanni Manghi (@gioman) Calvin Metcalf wrote:
what qgis version? what os and version? |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n) Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life. |
Author Name: joe larson (@oeon) I am still experiencing the same behavior in my test with 3.4.4 on Windows 10 and have updated the 'Affected QGIS version' of this ticket. Noted, I am testing in a virtualized environment (Parallels via a Mac host OS). It would be nice if someone else can also test.
|
Author Name: Nyall Dawson (@nyalldawson) Joe - are you connecting to fulcrum? Because they also block the QGIS user agent from direct access (no idea why). |
Author Name: joe larson (@oeon) Nyall Dawson wrote:
Hi Nyall, yes - I'm trying from Fulcrum. It's not an issue on Mac with QGIS 3.4. I suspect this is related #27159 In my Win10 VM/QGIS 3.4.4, I can connect to the Fulcrum data by setting GDAL_HTTP_UNSAFESSL = YES ...so we'll provide that workaround for now. |
Author Name: Chad Howard (Chad Howard) I used the Data Share feature from Fulcrum in every version of QGIS up to 3.4.3. After this version it broke but only in the Windows Version of QGIS. The Linux and Mac versions still operate perfectly with no problems at all. In the windows version when you pick GeoJson as your viable there are TWO in the list and neither work. I have tried to place the work around listed above and still does not work. It is not the end of the world for me since I have 2 Linux boxes, 3 Macs and 2 Windows computers so when I need to import data from fulcrum I just kick over to a Linux or Mac machine. |
Author Name: Giovanni Manghi (@gioman)
|
QGis 3.8.0, Win10, 1809 (=x64). |
This is fixed via @jef-n 's update of the libcurl package. The fix will be incorporated into the next point release standalone installer and is available already for those using the package-based osgeo4w installer. |
Author Name: David Piles (David Piles)
Original Redmine Issue: 17947
Affected QGIS version: 3.4.4
Redmine category:data_provider
Trying to add a Geojson in QGIS Desktop from a url from the dialog add vector layer by protocol, gives error.
"Invalid data source https: // ......... .geojson is not a valid or recognized data source".
The same geojson, if I open it in local works, online gives that error.
It doesn't work with http, or with https.
If you copy the content of the geojson in the URI, it shows it to you.
It has not worked for me in the QGIS Desktop 2.18.14 and QGIS Desktop 2.18.16, windows versions.
Related issue(s): #28717 (duplicates)
Redmine related issue(s): 20898
The text was updated successfully, but these errors were encountered: