Flask crashes with ValueError: too many values to unpack It seems to me that the crash is occurring when flask/werkzeug is attempting to process the response. You can see in the stack trace that my code is not involved at all, the top file is flask/app/py.
The line the triggers the API call is r = requests.get(url, data=data, verify=False)