rebane2001 / matterport-dl

A downloader for matterport virtual tours
The Unlicense
336 stars 81 forks source link

[Bug]: AccessKey expires during parsing of large Matterport tours #148

Open LevonX opened 9 hours ago

LevonX commented 9 hours ago

One or more sample matterport IDs / urls that reproduce the issue

ZaLhNdDsQBm

Can you reproduce this issue with the sample small digital twin https://my.matterport.com/show/?m=EGxFGTFyC9N

No

Started up message

No response

Python version

3.12

Steps to reproduce

What went wrong

When attempting to parse and download files for very large Matterport tours, the script encounters an issue where the accesskeys(?t=) expires before all files can be downloaded. The accesskeys has a lifespan of only 5 minutes (e.g. in tilesets, meshes, textures), which is insufficient for tours containing tens of thousands of files, especially when proxies are being used.

This results in incomplete downloads.

Expected Behavior: The script should handle AccessKey expiration gracefully, either by renewing the key when it expires.

Workarounds

No response

LevonX commented 9 hours ago

ERROR aFailure REQ for ADV_SKYBOX 5189: should exist: False Result: Error of: HTTP Error 410: File: models/8f92885ee1d747fd90db78ffa421e649/assets/pan/high/_/6a9b765d6970490bbfb5c69994b4cad5_skybox0.jpg at url: https://cdn-2.matterport.com/models/8f92885ee1d747fd90db78ffa421e649/assets/pan/high/~/6a9b765d6970490bbfb5c69994b4cad5_skybox0.jpg?t=2-15088fcff4544beafabd788c3011a2040805fa1b-1733298302-1&k=models%2F8f92885ee1d747fd90db78ffa421e649%2Fassets%2Fpan%2Fhigh