mbtiles-server
mbtiles-server copied to clipboard
The tile can't load!
Hello! I installed an started as the document, and here is my status below.
But when I use the server,something were wrong.
-
when I visit 127.0.0.1:3000
-
when I visit 127.0.0.1:3000/taiwanout/1/1/1.png the node.js command line print: {"body":{},"ip":"::ffff:127.0.0.1","method":"GET","url":"/taiwanout/1/1/1.png","query":{},"params":{}} The browser is waiting for a response.
-
when I visit http://127.0.0.1:3000/taiwanout/1/1/1 the node.js command line print: {"body":{},"ip":"::ffff:127.0.0.1","method":"GET","url":"/taiwanout/1/1/1","query":{},"params":{}} The browser is waiting for a response.
Could anyone can solve this problem?Thanks in advance!
I am having the same issue... did you solve it?
mbtiles-server --verbose --port 3001
MBTiles Server
cache: /Users/georgbachmann/mbtiles
protocol: http
port: 3001
domain: 127.0.0.1
verbose: true
watch: undefined
{"body":{},"ip":"::1","method":"GET","url":"/testmap/13/2893/4422.jpg","query":{},"params":{}}
^CTypeError: Cannot read property '0' of null
at Object.headers (/usr/local/lib/node_modules/mbtiles-server/node_modules/@mapbox/tiletype/index.js:54:15)
at GetTileRESTful.mbtiles.findOne.then.data (/usr/local/lib/node_modules/mbtiles-server/routes/wmts.js:131:24)
In my mbtiles database, the tile exists...
@DenisCarriere do you have any idea?
This library is no longer being maintained, feel free to send a PR with a fix if anyone does solve this issue.