1.3 KiB
1.3 KiB
| id | title | status | assignee | created_date | labels | dependencies | priority | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| task-034 | Fix Google Photos 403 error on thumbnail URLs | To Do | 2025-12-04 23:24 |
|
|
low |
Description
Debug and fix the 403 Forbidden errors when fetching Google Photos thumbnails in the Google Data Sovereignty module.
Current behavior:
- Photos metadata imports successfully
- Thumbnail URLs (baseUrl with =w200-h200 suffix) return 403
- Error occurs even with valid OAuth token
Investigation areas:
- OAuth consent screen verification status (test mode vs published)
- Photo sharing status (private vs shared photos may behave differently)
- baseUrl expiration - Google Photos baseUrls expire after ~1 hour
- May need to use mediaItems.get API to refresh baseUrl before each fetch
- Consider adding Authorization header to thumbnail fetch requests
Reference: src/lib/google/importers/photos.ts in feature/google-export branch
Acceptance Criteria
- #1 Photos thumbnails download without 403 errors
- #2 OAuth consent screen properly configured if needed
- #3 baseUrl refresh mechanism implemented if required
- #4 Test with both private and shared photos