mbtiles-server icon indicating copy to clipboard operation
mbtiles-server copied to clipboard

The tile can't load!

Open zxzfcsu opened this issue 6 years ago • 2 comments

Hello! I installed an started as the document, and here is my status below. status But when I use the server,something were wrong.

  1. when I visit 127.0.0.1:3000 3000 3000-npm-status 3000-status

  2. 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.

  3. 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!

zxzfcsu avatar Jul 02 '18 13:07 zxzfcsu

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?

georgbachmann avatar Mar 06 '19 09:03 georgbachmann

This library is no longer being maintained, feel free to send a PR with a fix if anyone does solve this issue.

DenisCarriere avatar Mar 09 '19 13:03 DenisCarriere