Closed danbjoseph closed 9 years ago
There is a new version of tl out, maybe try updating?
sudo npm update -g tl
Looking at what you put, it should work... Could you try this?
tl copy -z 13 -Z 21 -b '90.415163 23.784402 90.425184 23.794848' 'http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png' mbtiles://./hotel.mbtile
same error. packages and versions as follows:
» npm -g list --depth=0
/usr/local/lib
├── bower@1.4.1
├── forever@0.14.2
├── learnyounode@2.5.2
├── mbtiles@0.8.0
├── node-gyp@2.0.1
├── npm@2.12.1
├── rebuild@0.1.2
├── tilejson@0.13.0
├── tilelive@5.8.2
├── tilelive-http@0.7.0
├── tl@0.4.0
├── topojson@1.6.19
├── turf@2.0.2
└── wiredep@2.2.2
on the EC2 instance that can generate mbtiles
/usr/local/lib
├── mbtiles@0.8.0
├── npm@1.4.28
├── tilejson@0.13.0
├── tilelive@5.7.1
├── tilelive-http@0.7.0
└── tl@0.3.4
Hmm... Any thoughts @mojodna?
Bizarre. @danbjoseph what shell are you using? Try double quoting (or removing) the http://...
string.
zsh. double quoting the url string doesn't change anything. what do you mean by remove?
Try without quoting http://c.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png
I think zsh is encoding the braces before passing them in as args.
Alternately, try escaping the braces (\{
, \}
)...
Or even noglob tl copy -z 13 -Z 19 -b "90.375853 23.700965 90.437307 23.754632" 'http://c.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png' mbtiles://./dhaka.mbtiles
the noglob one and all of these returned the same error:
tl copy -z 13 -Z 21 -b '90.415163 23.784402 90.425184 23.794848' http://a.tile.openstreetmap.fr/hot/\{z\}/\{x\}/\{y\}.png mbtiles://./hotel.mbtiles
tl copy -z 13 -Z 21 -b '90.415163 23.784402 90.425184 23.794848' http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png mbtiles://./hotel.mbtiles
tl copy -z 13 -Z 21 -b '90.415163 23.784402 90.425184 23.794848' "http://a.tile.openstreetmap.fr/hot/\{z\}/\{x\}/\{y\}.png" mbtiles://./hotel.mbtiles
tl copy -z 13 -Z 21 -b '90.415163 23.784402 90.425184 23.794848' "http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png" mbtiles://./hotel.mbtiles
also tried switching to bash instead of zsh same error
Weird! I'll keep poking.
@danbjoseph what version of Node on the one that isn't working?
v0.12.6
Great, that's the missing piece. I'm able to reproduce now.
Underlying cause: https://github.com/joyent/node/issues/25636
wizard
@danbjoseph: updating tilelive-http to v0.8.0 should solve the problem (npm upgrade -g tilelive-http
).
:+1: thanks @mojodna
with up to date modules, the following error is thrown