-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of uninitialized value in sprintf at .../Kelp.pm line 149. #3
Comments
It sounds like this is a problem with your nginx configuration. Do you have the following line in your nginx proxy configuration? Look at http://wiki.nginx.org/HttpProxyModule for more information on how to set up your proxy, but generally the http section in your nginx config should look something like this:
Notice the last 4 lines in I might add a condition to handle this warning within Kelp's code, but it seems that it may be useful, because it lets you know that your app is not receiving the correct headers from nginx. |
Yes, I do have those lines in nginx.conf Would you try please replace On Thu, May 2, 2013 at 7:44 PM, Stefan Geneshky notifications@github.comwrote:
|
REMOTE_ADDR is not there if you proxying request through socket... As a workaround I use sub request { |
Yes, you are correct. I will add a patch for this in the next Kelp release. It seems like it might be a Plack issue, though. There are other headers that are not properly forwarded, for example REMOTE_HOST. |
The app is being accessed with nginx.
$req->address is an 'undef' value in Kelp.pm while sprintf has to print it...
It is not critical...
$ plackup -E development -s Starman -l /apps/log/WS.sock -a app.psgi
2013/05/02-15:26:48 Starman::Server (type Net::Server::PreFork) starting! pid(15202)
Binding to UNIX socket file "/apps/log/WS.sock"
Setting gid to "65199 65199 115 65199"
Starman: Accepting connections at http://localhost:/apps/log/WS.sock/
The text was updated successfully, but these errors were encountered: