Forums

Odd error

The error traceback is

2015-06-16 20:57:33,284 :Traceback (most recent call last):
2015-06-16 20:57:33,284 :  File "/bin/user_wsgi_wrapper.py", line 130, in __call__
2015-06-16 20:57:33,285 :    self.error_log_file.logger.exception("Error running WSGI application")
2015-06-16 20:57:33,285 :  File "/usr/lib/python3.4/logging/__init__.py", line 1296, in exception
2015-06-16 20:57:33,285 :    self.error(msg, *args, **kwargs)
2015-06-16 20:57:33,285 :  File "/usr/lib/python3.4/logging/__init__.py", line 1289, in error
2015-06-16 20:57:33,286 :    self._log(ERROR, msg, args, **kwargs)
2015-06-16 20:57:33,286 :  File "/usr/lib/python3.4/logging/__init__.py", line 1395, in _log
2015-06-16 20:57:33,286 :    self.handle(record)
2015-06-16 20:57:33,286 :  File "/usr/lib/python3.4/logging/__init__.py", line 1404, in handle
2015-06-16 20:57:33,287 :    if (not self.disabled) and self.filter(record):
2015-06-16 20:57:33,287 :  File "/usr/lib/python3.4/logging/__init__.py", line 692, in filter
2015-06-16 20:57:33,287 :    for f in self.filters:
2015-06-16 20:57:33,288 :  File "/bin/user_wsgi_wrapper.py", line 122, in __call__
2015-06-16 20:57:33,288 :    app_iterator = self.app(environ, start_response)
2015-06-16 20:57:33,288 :  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1836, in __call__
2015-06-16 20:57:33,289 :    return self.wsgi_app(environ, start_response)
2015-06-16 20:57:33,289 :  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1820, in wsgi_app
2015-06-16 20:57:33,289 :    response = self.make_response(self.handle_exception(e))
2015-06-16 20:57:33,289 :  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1403, in handle_exception
2015-06-16 20:57:33,290 :    reraise(exc_type, exc_value, tb)
2015-06-16 20:57:33,290 :  File "/usr/local/lib/python3.4/dist-packages/flask/_compat.py", line 33, in reraise
2015-06-16 20:57:33,290 :    raise value
2015-06-16 20:57:33,290 :  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1817, in wsgi_app
2015-06-16 20:57:33,291 :    response = self.full_dispatch_request()
2015-06-16 20:57:33,291 :  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1478, in full_dispatch_request
2015-06-16 20:57:33,292 :    response = self.make_response(rv)
2015-06-16 20:57:33,292 :  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1563, in make_response
2015-06-16 20:57:33,292 :    rv, status, headers = rv + (None,) * (3 - len(rv))
2015-06-16 20:57:33,292 :ValueError: too many values to unpack (expected 3)

The traceback makes it seem as though it has nothing to do with my application, but it only happens when I use a certain module, accessed through /organization or /boardreport. I have no idea why it is happening.

From what I can see you're only passing two values in the response (when it expects three) plus setting headers to be something.

What is the response where I am supposed to be sending three values? I only send one string value, not two or three values.

That is puzzling. This line in the traceback response = self.make_response(self.handle_exception(e)) makes me think that Flask is trying to send an error response of some sort and that is what's failing.

The most likely thing that could be causing this is that the modules that are giving you trouble are written either for a different version of Flask or perhaps even a different version of Python (2 vs 3).

If you have debug enabled, try turning it off, then you might get the traceback for the original exception in your error log.