j_syk
未讀,2012年1月20日 上午9:46:472012/1/20登入以回覆作者
登入以轉寄訊息
你的權限不足,無法在這個群組刪除訊息
登入以檢舉訊息
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:Django users
I was testing one my apps today with a form that features a drop-down
field that initiates a json lookup for additional detail. You choose a
location, it populates address fields. It's been working for weeks.
Today, when I clicked an entry, the target detail field didn't change.
I have debug off, so instantly I feel my phone buzz and I've been sent
a http500 report e-mail with the following message-
DatabaseError: execute cannot be used while an asynchronous query is
underway
I can't seem to reproduce the error, it's never happened before, and I
haven't changed this piece of code for a while, so I doubt it's
something new.
I'm willing to write it off as a fluke, but at the same time I'd like
to learn more and the search results on the topic don't seem good.
Server setup is Django 1.3.1, Gunicorn 0.13 with geventlet processes,
Nginx 0.7, postgres 8.4.8,
That particular page was using Jquery and a .getJSON call to a json
output produced by a django view which calls a basic query.
What should I know about the "asynchronous query" error? Are there
ways to prevent it? Should I be worried?