2008/11/2 blaf <[EMAIL PROTECTED]>:
>
> After finding out how to log things with LogLevel INFO the error is:
>
> TypeError: expected string object for header value

That would log at ERROR level and so unless your Apache LogLevel was
screwed up, should have appeared before as default is generally WARN,
which encompasses ERROR but not INFO.

> Probably related to this issue? 
> http://code.google.com/p/modwsgi/issues/detail?id=81

No, different problem. This issue only comes up with daemon mode and
triggers an error of:

[Tue Apr 29 21:51:40 2008] [error] [client 192.168.0.100] malformed
header from script. Bad header=; Path=/;: production.wsgi, referer:
http://example.com

Specifically, the 'malformed header from script' error.

In your case, it is because some header value is not a Python string
object. Likely you have it being a Unicode object or perhaps an
integer literal.

Use first recipe in section:

  
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response

to capture response headers into log file and look at whether they are
all string objects, or whether something else.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to