Skip to content

Sentinel‑2 L2A: B02/B03/B04 return 404 (B01 OK) for item `S2B_MSIL2A_20220214T173419_R055_T14TLK_20220223T082625 #468

Description

Summary: For the Sentinel‑2 L2A item above, the B01 asset opens fine, but B02/B03/B04 (and likely others) consistently return HTTP 404—even when using the STAC‑provided asset HREFs, signing once with planetary_computer.sign, and applying GDAL cloud‑read settings to avoid sidecar lookups. Expected behavior is that all listed band COG assets are accessible the same way as B01.

Repro (minimal):

  1. Fetch item via STAC (pystac-client) and read raw asset HREFs for B01/B02/B03/B04.
  2. Sign each raw HREF with planetary_computer.sign and requests.get() it.
  3. Observe: B01 → 200 (image/tiff; application=geotiff; profile=cloud-optimized); B02/B03/B04 → 404.
  4. rasterio.open(signed) also yields RasterioIOError: HTTP response code: 404 with GDAL_DISABLE_READDIR_ON_OPEN=YES and CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif,.tiff.

Env: Linux, Python 3.11, rasterio/GDAL versions available on request; STAC client + planetary_computer SDK.
Question: Is this item partially ingested or are certain band asset paths misaligned for this granule/tile/date?
Happy to provide full STAC JSON or test additional bands if helpful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions