0👍
The issue was quite sneaky, it was due to Gunicorn caching some files. In the old versions of views.py
, I had value = int(request.query_params['value'])
. When I updated the code Gunicorn was still answering using the outdated cached files, hence the failure to cast a string into an int. I restarted Gunicorn and it’s working now.
Source:stackexchange.com