OvertureMaps / io-site

MIT License
33 stars 5 forks source link

base.pmtiles, transport and buildings can't be inspected with curl #126

Open marklit opened 2 months ago

marklit commented 2 months ago

Description

➫ curl -I https://d3c1b7bog2u1nn.cloudfront.net/2024-07-22/base.pmtiles
HTTP/2 400
content-type: text/html
content-length: 513
server: CloudFront
date: Sat, 27 Jul 2024 14:56:36 GMT
expires: Sat, 27 Jul 2024 14:56:36 GMT
x-cache: Error from cloudfront
via: 1.1 3923a512726c14398a2e80f5bd4bf848.cloudfront.net (CloudFront)
x-amz-cf-pop: HEL51-P5
x-amz-cf-id: j5D2U9R_UgZmlHNculWBqviWPTRSjzbi5yR45mfrfAHiZgg5ENx5Dw==

What browser are you seeing the problem on? What version are you running?

curl

The OS you're using

Windows 11

Steps to reproduce

Paste the curl command above to see Cloudfront returns an HTTP 400

The browser URL at the time you encountered the bug

curl.

marklit commented 2 months ago

Same for transport and buildings

➫ curl -I https://d3c1b7bog2u1nn.cloudfront.net/2024-07-22/transportation.pmtiles
HTTP/2 400
content-type: text/html
content-length: 513
server: CloudFront
date: Sat, 27 Jul 2024 14:58:23 GMT
expires: Sat, 27 Jul 2024 14:58:23 GMT
x-cache: Error from cloudfront
via: 1.1 448fcc252e476a639e1c3f425638c58a.cloudfront.net (CloudFront)
x-amz-cf-pop: HEL51-P5
x-amz-cf-id: pUmSu9GTNiriMwxL7uMcxDnsoCfwPQzhM3K1_UOJYnp0im-sROZ4ig==
$ curl -I https://d3c1b7bog2u1nn.cloudfront.net/2024-07-22/buildings.pmtiles
HTTP/2 400
content-type: text/html
content-length: 513
server: CloudFront
date: Sat, 27 Jul 2024 14:59:06 GMT
expires: Sat, 27 Jul 2024 14:59:06 GMT
x-cache: Error from cloudfront
via: 1.1 a6d4ad35157bf59716f4d15cc1baed0c.cloudfront.net (CloudFront)
x-amz-cf-pop: HEL51-P5
x-amz-cf-id: 99wG2DBFo0APxr2JFllyNrUEOetD6rd_Z0rMJVWeWXYjk1pahkm3jA==

Both places and divisions work fine.

This appears to be curl-specific because these files can be called with ranges just fine by Brave / Chrome.

Bonkles commented 2 months ago

Ooh thanks for the report here, interesting....

bdon commented 2 months ago

If you need to inspect the raw S3 URLs, those are listed here:

https://github.com/OvertureMaps/overture-tiles?tab=readme-ov-file#overture-tiles

e.g. https://overturemaps-tiles-us-west-2-beta.s3.amazonaws.com/2024-07-22/buildings.pmtiles

The CloudFront URL with the random subdomain is only meant for the interactive Explorer website.