Tangdongle / firepy

Automatically exported from code.google.com/p/firepy
MIT License
0 stars 0 forks source link

Firefox do not receive response when great massive of data transferred to firephp #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Firefox do not receive response when using django 1.0.2 and firepy
Maybe firephp addon issue.
See 
http://groups.google.com/group/django-users/browse_thread/thread/3ac58a949964cc6
f

Original issue reported on code.google.com by alecs....@gmail.com on 16 Jul 2009 at 6:04

GoogleCodeExporter commented 8 years ago
It was a bug in firepy. It have been resolved in firepy 0.1.4. Thank you!

Original comment by serialx....@gmail.com on 19 Jul 2009 at 3:37

GoogleCodeExporter commented 8 years ago
I'm still experiencing this issue with 0.1.5 running on Django 1.1.
Certain requests generate a lot of SQL statements, causing firePy to generate a 
*lot* 
of HTTP headers. For example, when trying to edit user accounts in the Auth 
Admin 
module, my apache server responds 200 OK but then never sends the actual data. 
Turning off FirePy resolves the issue. Here's a traffic capture:

GET /admin/auth/user/1/ HTTP/1.0
Host: lfu.servertree.net
X-Real-IP: 24.57.244.210
X-Forwarded-For: 24.57.244.210
Connection: close
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.0 (KHTML, 
like 
Gecko) Chrome/4.0.204.0 Safari/532.0
Cache-Control: max-age=0
Accept: 
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png
,*/*;
q=0.5
Accept-Encoding: gzip,deflate,sdch
Cookie: sessionid=656342a5386fc149d695e69b9019c6cd
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

HTTP/1.1 200 OK
Date: Wed, 02 Sep 2009 18:14:19 GMT
Server: Apache/2.2.11 (Ubuntu) mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.11 
OpenSSL/0.9.8g mod_wsgi/2.3
X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-
FirePHPCore/0.2.0
X-Wf-1-Structure-1: 
http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1
Expires: Wed, 02 Sep 2009 18:14:19 GMT
Vary: Cookie
ETag: "f39c478d937a5a899526bf11f073d7f7"
X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2
Cache-Control: max-age=0
X-Wf-1-1-1-3: |ontent_type\" WHERE \"django_content_type\".\"id\" = 8  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 9  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 8  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 9  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 8  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 6  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 6  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 6  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 7  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 7  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 7  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"auth_group\".\"id\", 
\"auth_group\".\"name\" FROM \"auth_group\"", "0.000"]]]|
X-Wf-1-1-1-2: |\"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 1  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 3  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 2  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 4  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 1  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 3  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 2  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 4  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 1  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 3  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 5  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 5  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 5  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 9  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_c|\
X-Wf-1-1-1-1: 10972|[{"Line": 23, "Type": "TABLE", "File": "a.py", "Label": "38 
SQL 
queries took 0.010000 seconds"}, [["SQL Statement", "Time"], ["SELECT 
\"django_session\".\"session_key\", \"django_session\".\"session_data\", 
\"django_session\".\"expire_date\" FROM \"django_session\" WHERE 
(\"django_session\".\"session_key\" = E'656342a5386fc149d695e69b9019c6cd'  AND 
\"django_session\".\"expire_date\" > E'2009-09-02 14:14:19.718569' )", 
"0.003"], 
["SELECT \"auth_user\".\"id\", \"auth_user\".\"username\", 
\"auth_user\".\"first_name\", \"auth_user\".\"last_name\", 
\"auth_user\".\"email\", 
\"auth_user\".\"password\", \"auth_user\".\"is_staff\", 
\"auth_user\".\"is_active\", 
\"auth_user\".\"is_superuser\", \"auth_user\".\"last_login\", 
\"auth_user\".\"date_joined\" FROM \"auth_user\" WHERE \"auth_user\".\"id\" = 1 
", 
"0.001"], ["SELECT \"auth_user\".\"id\", \"auth_user\".\"username\", 
\"auth_user\".\"first_name\", \"auth_user\".\"last_name\", 
\"auth_user\".\"email\", 
\"auth_user\".\"password\", \"auth_user\".\"is_staff\", 
\"auth_user\".\"is_active\", 
\"auth_user\".\"is_superuser\", \"auth_user\".\"last_login\", 
\"auth_user\".\"date_joined\" FROM \"auth_user\" WHERE \"auth_user\".\"id\" = 1 

ORDER BY \"auth_user\".\"username\" ASC", "0.001"], ["SELECT 
\"auth_group\".\"id\", 
\"auth_group\".\"name\" FROM \"auth_group\" INNER JOIN \"auth_user_groups\" ON 
(\"auth_group\".\"id\" = \"auth_user_groups\".\"group_id\") WHERE 
\"auth_user_groups\".\"user_id\" = 1 ", "0.001"], ["SELECT 
\"auth_permission\".\"id\", \"auth_permission\".\"name\", 
\"auth_permission\".\"content_type_id\", \"auth_permission\".\"codename\" FROM 
\"auth_permission\" INNER JOIN \"auth_user_user_permissions\" ON 
(\"auth_permission\".\"id\" = \"auth_user_user_permissions\".\"permission_id\") 
INNER 
JOIN \"django_content_type\" ON (\"auth_permission\".\"content_type_id\" = 
\"django_content_type\".\"id\") WHERE 
\"auth_user_user_permissions\".\"user_id\" = 1  
ORDER BY \"django_content_type\".\"app_label\" ASC, 
\"auth_permission\".\"codename\" 
ASC", "0.002"], ["SELECT \"auth_message\".\"id\", \"auth_message\".\"user_id\", 
\"auth_message\".\"message\" FROM \"auth_message\" WHERE 
\"auth_message\".\"user_id\" 
= 1 ", "0.001"], ["SELECT \"auth_permission\".\"id\", 
\"auth_permission\".\"name\", 
\"auth_permission\".\"content_type_id\", \"auth_permission\".\"codename\" FROM 
\"auth_permission\" INNER JOIN \"django_content_type\" ON 
(\"auth_permission\".\"content_type_id\" = \"django_content_type\".\"id\") 
ORDER BY 
\"django_content_type\".\"app_label\" ASC, \"auth_permission\".\"codename\" 
ASC", 
"0.001"], ["SELECT \"django_content_type\".\"id\", 
\"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 10  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 10  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 10  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 2  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", \"django_content_type\".\"name\", 
\"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM 
\"django_content_type\" WHERE \"django_content_type\".\"id\" = 4  ORDER BY 
\"django_content_type\".\"name\" ASC", "0.000"], ["SELECT 
\"django_content_type\".\"id\", |\
X-Wf-1-Index: 3
Last-Modified

And this is where it stops...

Original comment by linkad...@gmail.com on 2 Sep 2009 at 10:25

GoogleCodeExporter commented 8 years ago
Additionally, please note that there is a known issue with FirePHP storing its 
data 
in HTTP headers, which have a maximum size. Here's the FirePHP support thread 
highlighting the issue and the author's planned fix: 
http://n2.nabble.com/FirePHP-
Firefox-Extention-502-Bad-Gateway-Request-or-reply-too-is-large-
td1110290.html#a1110290

For the time being, I would suggest trimming the size of the HTTP headers 
generated 
by FirePY to a reasonable size, and adding another log message at the end of 
the 
headers explaining that the firePy data has been trimmed to prevent the request 
from 
breaking. We would lose a bit of headers data, but our requests would still be 
served.

Original comment by linkad...@gmail.com on 2 Sep 2009 at 10:38