GithubHelp home page GithubHelp logo

Comments (5)

robertosfield avatar robertosfield commented on September 27, 2024

I just tried:

vsgviewer models/readymap.vsgt

On my Kubuntu 22.04 system and everything works fine, this is latest VSG, vsgXchange and vsgExamples.

Which version of the VSG, vsgXchange, libcurl, OS and compiler tools are you using?

The file extension shouldn't affect the libcurl operation - vsgXchange simply opens a connection with libcurl and downloads the data and then locally reads it as a png/jpg etc. The report of "Unsupported protocol" looks like an issue with opening the connection to the server for some reason.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

From libcurl docs: https://curl.se/libcurl/c/libcurl-errors.html

CURLE_UNSUPPORTED_PROTOCOL (1)

The URL you passed to libcurl used a protocol that this libcurl does not support. The support might be a compile-time option that you did not use, it can be a misspelled protocol string or just a protocol libcurl has no code for. 

http should be supported so perhaps your libcurl has been built with limitations or there is firewall that's causing problems with that service. Try investigating with invoking the curl command line on the http address being reported as a problem and see if it gives you any more information.

I think mostly likely it's a local issue rather than a specific problem with vsgXchange so I'd recommend investigating it at your end as there isn't anything more I can do as it's all working at my end so I have no clues to what might specifically wrong on your system.

from vsgexamples.

albert8271 avatar albert8271 commented on September 27, 2024

my os is win10, the vsg ,vsgXchange i s latest. the compile is vs2019.
the libcurl is 7.57 。I will try another version libcurl.

Thanky you!

from vsgexamples.

albert8271 avatar albert8271 commented on September 27, 2024

I have test another libcurl ,the outcome is same, but i do some test, maybe I found the problem.
I do some test with the libcurl.
image
the return show the page not exist in http, just exist in https.
image
I get the right jpeg

alse, i can get the data in https
image.

but when I use vsgviewer, curl just supprt http,no support https.
in http, "vsgviewer openstreetmap.vsgt" run right.
in http, "vsgviewer readymap.vsgt" run error, Unsupported protocol.

I change the http to https in the openstreetmap.vsgt and readymap.vsgt.
all run error, Unsupported protocol.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

The issue with https on some versions of libcurl under Windows is a known problem, it's not VSG related, but just how some libcurl binaries have been built. There is some code in vsgXchange to work around some of the https related issues that libcurl has thrown up, but it looks like you are still seeing problems so perhaps you'll need to do more with your version of libcurl.

from vsgexamples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.