Music-Controller-Web-App-Tutorial icon indicating copy to clipboard operation
Music-Controller-Web-App-Tutorial copied to clipboard

Tutorial 13 - unsupported type for timedelta seconds component: NoneType

Open snipercool opened this issue 4 years ago • 4 comments

Hi, First great tutorial but im stuck with the spotify authentication. for some reason when he redirects it says /spotify/util.py line 22 in update_or_create_user_tokens

expires_in = timezone.now() + timedelta(seconds=expires_in)

and my local vars are:

Variable | Value access_token | None expires_in | None refresh_token | None session_id | 'oxfrwmlxgj4ujn81fnigvc0u5xmt5kyx' token_type | None tokens | None

why are they all None. I even tried copy pasting your files to my code

snipercool avatar Jan 20 '21 23:01 snipercool

what is the error/exception raised?

aHardReset avatar Apr 16 '21 16:04 aHardReset

Had the same error, changed the expires_in to 3600 for now. It is running fine but need the optimal solution for this.

Shivampurbia avatar Jun 30 '21 14:06 Shivampurbia

Had the same error, changed the expires_in to 3600 for now. It is running fine but need the optimal solution for this. Hey man, did you change the value of expires_in on what file? utils?

GodKimba avatar Jan 30 '22 16:01 GodKimba

@GodKimba yes I guess in the utils.py file. Though it was a long time ago but after seeing the first comment I think it was util file.

Shivampurbia avatar Jan 30 '22 17:01 Shivampurbia