Opened 11 years ago

Closed 11 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:


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/', line 224 in access_token
  (token.expires -}
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'

Change History (3)

comment:1 by spaetz, 11 years ago

This is fixed in my branch 566_fix_total_seconds on 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.

comment:2 by spaetz, 11 years ago

Milestone: 0.3.3

comment:3 by spaetz, 11 years ago

Resolution: fixed
Status: newclosed

This actually went in as commit 2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5 before 0.3.2 was released.

Note: See TracTickets for help on using tickets.