I have been looking over this simple error for some time now. It appears 
everyone has solved this issue, but I can not get it resolved. 

I have seen several StackOverflow questions with this same issue:

http://stackoverflow.com/questions/34838443/typeerror-sequence-of-byte-string-values-expected-value-of-type-str-found

I have followed the directions and still can not seem to be able to fix the 
issue.

testwsgi.py

def application(environ, start_response):   
        status = '200 OK'     
        response_body = b'WSGI Test worked: %s' % environ['REQUEST_METHOD']
        response_headers = [
               ('Content-type', 'text/plain'),
               ('Content-Length'), str(len(response_body))
        ]      
        start_response(status, response_headers)
        return [response_body]

Here is the error from apache logs:

[Fri Feb 10 09:30:12.203832 2017] [:error] [pid 2513] [remote 
10.237.228.189:208] mod_wsgi (pid=2513): Exception occurred processing WSGI 
script '/var/www/wsgi/testwsgi.py'.
[Fri Feb 10 09:30:12.203946 2017] [:error] [pid 2513] [remote 
10.237.228.189:208] *TypeError: list of tuple values expected, value of 
type str found*

This is on a RHEL 7.3 server with httpd 2.4.6 and mod_wsgi 3.4

Is this an issue with RHEL 7 implementation of mod_wsgi?

Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to