mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Source: New Layer import takes forever to error #526

Closed camilleanne closed 10 years ago

camilleanne commented 10 years ago

I've noticed on some .shp files I've tried to import that I will try to submit the file and clicking the button doesn't seem to do anything. That's because it's made this request http://localhost:3000/metadata?file=/Users/camille/Downloads/ne_10m_graticules_all/ne_10m_graticules_30.shp and it's still pending and waiting. Eventually (a minute or two later) you see "(failed) net::ERR_EMPTY_RESPONSE" in the network tab and this:

screen shot 2014-07-10 at 4 38 20 pm

ghost commented 10 years ago

do you use sync or async io calls for reading those files?

ghost commented 10 years ago

and are you familiar with all the events for http://nodejs.org/api/stream.html#stream_class_stream_readable ?

yhahn commented 10 years ago

@camilleanne can you add these hangers to a branch in https://github.com/mapbox/mapnik-test-data/tree/master/data/shp and @GretaCB or I can take a look?

GretaCB commented 10 years ago

@camilleanne Looks like there are a couple things happening in mapnik-omnivore:

GretaCB commented 10 years ago

@camilleanne this issue should be fixed with my last tm2 update (fixed mapnik-omnivore).