Music-Controller-Web-App-Tutorial
Music-Controller-Web-App-Tutorial copied to clipboard
Tutorial 13 - unsupported type for timedelta seconds component: NoneType
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
what is the error/exception raised?
Had the same error, changed the expires_in to 3600 for now. It is running fine but need the optimal solution for this.
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 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.