Amazon Drive backend fails after 1 hour
Bug #1689501 reported by
Rojetto
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using duplicity 0.7.12 with the Amazon Drive backend adbackend.py (revision 1218) from series 0.8 installed.
When backing up a larger amount of data, the first few volumes upload fine, but the upload for later volumes starts to fail after exactly 1 hour with 'HTTP Error: 401 Client Error: Unauthorized'. I don't know how this stuff exactly works, but it seems to me like the backend script requests an OAuth token just at the beginning of the process, that simply expires after a while. Maybe refreshing the token before every volume upload would be an option?