A chunk that reaches the server after the 15-minute access token has expired is refreshed and sent again, instead of being marked failed.
Uploads start a chunk only with a token that still has a few minutes left.
While full originals are being sent, only two photos are read from disk at once, so the window does not freeze long enough for the token to die.
Test plan
SDK: a token with under the requested lifetime is refreshed; several callers of a rejected token share one refresh
Upload: a 401 on a chunk is retried with the new token; a 415 is not retried
Local FTP tests still pass
## Summary
- A chunk that reaches the server after the 15-minute access token has expired is refreshed and sent again, instead of being marked failed.
- Uploads start a chunk only with a token that still has a few minutes left.
- While full originals are being sent, only two photos are read from disk at once, so the window does not freeze long enough for the token to die.
## Test plan
- [x] SDK: a token with under the requested lifetime is refreshed; several callers of a rejected token share one refresh
- [x] Upload: a 401 on a chunk is retried with the new token; a 415 is not retried
- [x] Local FTP tests still pass
Reading several full originals at once froze the desktop webview, so a chunk left after the 15-minute token had expired and the photo was marked failed.
spark
merged commit 54a941101c into main2026-10-19 16:44:47 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Test plan