>
> So it seems like there's something else going wrong. Does the same  
> error
> occur if you try to pull an image from the database that is guaranteed
> not to exist (so there's no question of it being a race condition)? If
> so, that just means your error handling for missing items needs
> improvement.

As soon as I tried this I realized that I wasn't handling 404  
possibilities, so they were resulting in server errors. I added a  
get_object_or_404 method, a 404 template, and then tried the whole  
thing again, and got no proxy errors. I don't understand why that  
should be – the view that was giving me errors was not retrieving a  
single Picture directly, simply a queryset of Pictures that that one  
Picture would have belonged to, had it been safely in the database.  
Does this make sense at all?

Thanks,
Eric


> If not, you need to get some more information about what the  
> response is
> that is being sent back. For example, if you could connect directly,
> without the proxy server in the way, you might see something. Also, if
> your Django process is raising an uncaught exception, it should be  
> being
> logged somewhere (the server's error log, for example), although that
> isn't universally true -- it depends on the server that's involved  
> (what
> are you using to serve this app?).
>
> If nothing else works, I'd start putting logging statements in the  
> view
> that returns the response that is causing the problem. Try to work out
> exactly what it is returning. At the moment, all you've got to work on
> is a chronological correlation ("this happens just after that") and an
> error message that says the response was so bad it couldn't be
> interpreted at all. That's means something bad is going on under the
> covers, but you have to gather more information before you'll be  
> able to
> work out what.
>
> Regards,
> Malcolm
>
> -- 
> The sooner you fall behind, the more time you'll have to catch up.
> http://www.pointy-stick.com/blog/
>
>
> >


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

Reply via email to