I have a web application which uses the django framework. I am using gspread to parse some data from googlesheet. On my local machine the script is running well, but once it is deployed on the web server, after about one hour I get this error:
File "/home/ZhukovGreen/rmkPrjWeb/myvenv/local/lib/python2.7/site-packages/gspread/httpsession.py", line 72, in request response.status_code, response.content)) HTTPError: 401: Token invalid - Invalid token: Stateless token expiredToken invalid - Invalid token: Stateless token expired
Error 401
Thank you.