-
Notifications
You must be signed in to change notification settings - Fork 46
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
error with url geojson #18
Comments
@demarsm could be a localhost issue, but what is interesting is you have a 504 bad gateway response, is there a proxy running locally? |
Yes I am behind a proxy, but I have to tell you that using the url (https://gist.github.com/wavded/7376428/raw/971548233e441615a426794c766223488492ddb9/test.geojson) found in the geojson-url.js example is working. If ogr2ogr was not able to be used through my proxy, the geojson-url.js would fail the same no? |
I am serving the geojson at http:https://localhost:3000/admin/711/lines.geojson like below (its not a static geojson file)
can it works even if the geojson is not static? |
@demarsm that shouldn't make a difference (dynamic vs static), seems like there is an issue in the proxy as the request made received a 504 from the proxy server. Have you tried using |
@wavded You are right, the problem is with the proxy. The url can be accessed by web browsers, but not by other clients. I have tested with another client and I have the same 504 error than with ogr2ogr. This issue is out of the scope for here. Thank you for your help! |
@wavded The end of the story: the company where I work used to be behind a proxy, but the technicians remove it lately without telling us. The proxy and https-proxy variables that was set on my system, was causing the 504 error. Now that I removed it, everything is working fine. Thank you again |
@demarsm glad you got it figured out! |
Maybe I have this problem because my url is on localhost?
I have this geojson at the following url: http:https://localhost:3000/admin/711/lines.geojson
Im doing like this:
I have the following error:
events.js:85
throw er; // Unhandled 'error' event
^
Error: ERROR 1: HTTP error code : 504
FAILURE:
Unable to open datasource `http:https://localhost:3000/admin/711/lines.geojson' with t
he following drivers...
The text was updated successfully, but these errors were encountered: