Opened 12 years ago
Closed 12 years ago
#566 closed defect (fixed)
/oauth/access_token route 500's
Reported by: | James Turner | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 0.3.2 |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
When trying to request an access token using the /oauth/access_token route it 500's with the following error in the logs:
File '/srv/audio-video-new.gnu.org/mediagoblin/mediagoblin/plugins/oauth/views.py', line 224 in access_token (token.expires - datetime.now()).total_seconds()))} AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Milestone: | → 0.3.3 |
---|
comment:3 by , 12 years ago
Milestone: | 0.3.3 → 0.3.2 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This actually went in as commit 2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5 before 0.3.2 was released.
Note:
See TracTickets
for help on using tickets.
This is fixed in my branch 566_fix_total_seconds on git://gitorious.org/~spaetz/mediagoblin/spaetz-mediagoblin.git . It is nearly as easy to just calculate the time delta in seconds manually than using the total_seconds method introduced in python 2.7, especially if we are not interested at all in microseconds.