Closed joyboy-us closed 3 years ago
what did you do exactly?
is there an error in the console?
is there an error in a promise somewhere?
there are an infinite ways to code something incorrectly so I'm going to need a few more details
This is the error i get { Error: connect ECONNREFUSED 127.0.0.1:80 at Object._errnoException (util.js:1026:11) at _exceptionWithHostPort (util.js:1049:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1174:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 80 }
i did npm install shpjs --save and brought in shpjs to my service file and i am able to hit the api, im pointing to the right file and i get the above message.
and http://localhost:80/testShp.zip has a file at it ?
yeah its in the root of my project as a test
localhost:8080*
the error you are getting is that it can't access http://localhost:80/testShp.zip
alright so i changed the file path a couple of times and get the same result everytime, why would it be looking at localhost 80?
maybe try loading with a fully qualified url with the http and what not
I am trying to use his package in an app I am building and I am unable to import shapefile zip to convert to GEOjson as the example shows, any insights would be greatly appreciated.