[Fixed]-Django valueError when using query_params

1👍

Can you try

import json
json.loads(<query string value>)

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.

Leave a comment