Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-16 Thread djidjadji
http://www.downforeveryoneorjustme.com/
does a HEAD request. If you don't implement that the site is reported
as down also.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-16 Thread Tom Critchlow
Hi djidjadji,

I'm pretty now to coding and python - could you please give me a pointer as
to how I add HEAD information? Is this something I need to do within
GAEsessions?

Is this related to the missing middleware error or unrelated?

Thanks

Tom

On Sun, Jan 16, 2011 at 8:44 AM, djidjadji djidja...@gmail.com wrote:

 http://www.downforeveryoneorjustme.com/
 does a HEAD request. If you don't implement that the site is reported
 as down also.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
Tom Critchlow
twitter.com/tomcritchlow
www.fuckyeahspotify.com
www.7bks.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-16 Thread djidjadji
A HEAD request is like a GET or POST request.
The request handler must have a def head(self) method. The responds
should be the result of a GET request but without the body.
I don't know how webapp or another framework handles it after the
return of the head() function.

http://code.google.com/appengine/docs/python/tools/webapp/requesthandlerclass.html

2011/1/16 Tom Critchlow tjcritch...@gmail.com:
 Hi djidjadji,
 I'm pretty now to coding and python - could you please give me a pointer as
 to how I add HEAD information? Is this something I need to do within
 GAEsessions?
 Is this related to the missing middleware error or unrelated?
 Thanks
 Tom

 On Sun, Jan 16, 2011 at 8:44 AM, djidjadji djidja...@gmail.com wrote:

 http://www.downforeveryoneorjustme.com/
 does a HEAD request. If you don't implement that the site is reported
 as down also.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




 --
 Tom Critchlow
 twitter.com/tomcritchlow
 www.fuckyeahspotify.com
 www.7bks.com

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-14 Thread willo
I added an issue for this here:
http://code.google.com/p/googleappengine/issues/detail?id=4236q=webapp_add_wsgi_middlewarecolspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

I don't know how to resolve it, it appeared at 1.4.0, but it seems to
only be an annoyance.

On Jan 13, 4:12 pm, Tom tjcritch...@gmail.com wrote:
 Hi,

 I've started receiving this error - only for some types of browsers by the
 looks of things. Here's my appengine_config file:

 from gaesessions import SessionMiddleware

 # suggestion: generate your own random key using os.urandom(64)
 # WARNING: Make sure you run os.urandom(64) OFFLINE and copy/paste the
 output to
 # this file.  If you use os.urandom() to *dynamically* generate your key at
 # runtime then any existing sessions will become junk every time you start,
 # deploy, or update your app!
 import os
 COOKIE_KEY = cookiekey

 def webapp_add_wsgi_middleware(app):
   from google.appengine.ext.appstats import recording
   app = SessionMiddleware(app, cookie_key=COOKIE_KEY)
   app = recording.appstats_wsgi_middleware(app)
   return app

 Any ideas?

 Thanks
 Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-14 Thread Tom Critchlow
Hi Willo,

I'm pretty sure this is more serious than an annoyance - although I can't
replicate it on my machine I have reliable reports from people that say my
site is down and I've tracked these visits back to ones that fire this
middleware warning. So it appears to cause the website to not resolve for
these visits (though the appengine console doesn't report them as errors,
just as warnings).

A good way to replicate this is to use
http://www.downforeveryoneorjustme.com/ which for me reliably shows my site
as down even though it's up and functioning fine for me (and others). When I
track this request in appengine I see this:

http://i.imgur.com/wBPql.png

http://i.imgur.com/wBPql.png
http://www.downforeveryoneorjustme.com/7bks.com

http://www.downforeveryoneorjustme.com/7bks.comAlso, I asked people on
twitter to visit my site and maybe 30% of respondents reported they couldn't
get to the site while the rest said it was fine. Again - these visits that
couldn't access the site showed the warning, no errors in the logs.

Let me know if I can provide more information or further data

Thanks

Tom

On Fri, Jan 14, 2011 at 10:03 PM, willo jtwilloug...@gmail.com wrote:

 I added an issue for this here:

 http://code.google.com/p/googleappengine/issues/detail?id=4236q=webapp_add_wsgi_middlewarecolspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

 I don't know how to resolve it, it appeared at 1.4.0, but it seems to
 only be an annoyance.

 On Jan 13, 4:12 pm, Tom tjcritch...@gmail.com wrote:
  Hi,
 
  I've started receiving this error - only for some types of browsers by
 the
  looks of things. Here's my appengine_config file:
 
  from gaesessions import SessionMiddleware
 
  # suggestion: generate your own random key using os.urandom(64)
  # WARNING: Make sure you run os.urandom(64) OFFLINE and copy/paste the
  output to
  # this file.  If you use os.urandom() to *dynamically* generate your key
 at
  # runtime then any existing sessions will become junk every time you
 start,
  # deploy, or update your app!
  import os
  COOKIE_KEY = cookiekey
 
  def webapp_add_wsgi_middleware(app):
from google.appengine.ext.appstats import recording
app = SessionMiddleware(app, cookie_key=COOKIE_KEY)
app = recording.appstats_wsgi_middleware(app)
return app
 
  Any ideas?
 
  Thanks
  Tom

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
Tom Critchlow
twitter.com/tomcritchlow
www.fuckyeahspotify.com
www.7bks.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.