node-mbtiles's People
node-mbtiles's Issues
Getting Unknown encoding: { 'Content-Type': 'image/png' }
Hi Adrian,
I tried running this code , which gives me this error:
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: { 'Content-Type': 'image/png' }
at new NodeError (node:internal/errors:371:5)
at _write (node:internal/streams/writable:293:13)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at ServerResponse._writeRaw (node:_http_outgoing:363:17)
at ServerResponse._send (node:_http_outgoing:339:15)
at write_ (node:_http_outgoing:785:9)
at ServerResponse.end (node:_http_outgoing:855:5)
at Statement.<anonymous> (/home/anurag/Documents/projects/project_yelo/geo/node-mbtiles/node-mbtiles/main.js:72:21) {
code: 'ERR_UNKNOWN_ENCODING'
}
Steps followed to reproduce this:
MBT file I used:
Just rename this files : by removing zip from file name extension
ashta.mbtiles.zip
- Placed it in root folder of the
node-mbtiles
, and didnpm install
- Ran the code by :
node main.js -p 3030
I modified the code a little:
const databases = {
ashta: {
filePath: "ashta.mbtiles"
}
};
- When I go to url
http://localhost:3030/ashta/0/0/0
I get the error.
Please assist how do we solev this issue.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.