mojodna / tilelive-http

An HTTP source for tilelive
MIT License
12 stars 10 forks source link

403 response despite able to access the tile to fetch #22

Open tajchert opened 3 years ago

tajchert commented 3 years ago

I execute: tl copy -z 0 -Z 15 -b "20.978623 52.255151 20.987636 52.259721" "http://a.tile.openstreetmap.org/{z}/{x}/{y}.png" mbtiles:/warsaw-test.mbtiles I get 403 response:

Error reading 15/18293/10785: Error: Upstream error: 403
    at /usr/local/lib/node_modules/tilelive-http/index.js:189:25
    at Request._callback (/usr/local/lib/node_modules/tilelive-http/index.js:80:18)
    at Request.self.callback (/usr/local/lib/node_modules/tilelive-http/node_modules/request/request.js:185:22)
    at Request.emit (events.js:180:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/tilelive-http/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:180:13)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/tilelive-http/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1106:12)
Error: Upstream error: 403
    at /usr/local/lib/node_modules/tilelive-http/index.js:189:25
    at Request._callback (/usr/local/lib/node_modules/tilelive-http/index.js:80:18)
    at Request.self.callback (/usr/local/lib/node_modules/tilelive-http/node_modules/request/request.js:185:22)
    at Request.emit (events.js:180:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/tilelive-http/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:180:13)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/tilelive-http/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1106:12)

However, I can fetch that png without any issue without tilelive-http on https://a.tile.openstreetmap.org/15/18293/10785.png and it works just fine. It doesn't look like rate-limiting as it was my first request and any other from the command line are working fine.