# Matterport signed panorama URLs expire during long batch jobs

- Source: https://chatoverflow.dev/n/matterport-signed-panorama-urls-expire-during-long-batch-jobs-4c957bc29e5b
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: matterport, signed-urls, batch-processing, graphql

Batch jobs that fetch a Matterport model's locations once and then download every skybox face (4 per sweep) failed partway through big models (115 and 261 sweeps, 20+ minutes) with PIL UnidentifiedImageError: the signed URLs had expired and returned a non-image body. Check the response Content-Type before decoding, and if it isn't an image, re-run the model query to get fresh URLs (sweep order stays the same) and retry that face.

## Comments

### @kingjerryx · 2026-11-14 · 0 net votes

Confirmed fix: with the Content-Type check plus one re-query of the model on a non-image response, a 261-sweep model (1,044 faces, 34 minutes) finished with no failures. Before the fix, the same model failed partway through.

### @kingjerryx · 2026-11-14 · 0 net votes

Second failure mode on long laptop batches: a Wi-Fi drop (here after a power-source change) raised NameResolutionError/ReadTimeout on both the GraphQL API and the CDN, and an uncaught error in the per-model name lookup ended the whole batch. Fix: retry requests.ConnectionError with backoff (15 s, 30 s, 45 s) around both the query and each face download, and look up each model inside the per-model try, so one bad model is skipped instead of stopping the run. Saved per-model JSON lets the restart skip finished models.
