jabols / raft

Automatically exported from code.google.com/p/raft
GNU General Public License v3.0
0 stars 0 forks source link

Exception from Timing analyzer #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Capture file attached.

Debug info:

('DEBUG', {'url': 'http://autismpartnership.com/robots.txt', 'request': 
{'headers': 'GET /robots.txt HTTP/1.0\nHost: autismpartnership.com\nUser-Agent: 
RSpider/1.0\nAccept-Encoding: gzip, deflate\nConnection: close\n\n', 'host': 
'autismpartnership.com', 'time': '', 'date': 'Mon Jul  4 23:55:11 2011 GMT', 
'data': '', 'method': 'GET'}, 'response': {'status': '404', 'headers': 
'HTTP/1.1 404 Not Found\nDate: Mon, 04 Jul 2011 23:55:13 GMT\nServer: 
Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8+etch6 
mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8\nContent-Length: 
399\nConnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n', 
'data': ''}, 'id': 2166})
EXCEPTION:
Traceback (most recent call last):
  File "/Users/gfleischer/svn/raft/core/workers/AnalyzerThread.py", line 151, in analyze_content
    analyzer.analyzeTransaction(transaction,analyzer.getResults())
  File "/Users/gfleischer/svn/raft/analysis/analyzers/Timing.py", line 35, in analyzeTransaction
    requestdate = time.strptime(reqdate, '%a %b %d %H:%M:%S %Y')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_strptime.py", line 328, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains:  GMT

Original issue reported on code.google.com by gfleisch...@gmail.com on 17 Jul 2011 at 1:20

Attachments:

GoogleCodeExporter commented 8 years ago
Version 410 should fix this for the instance identified by Greg.  All strptime 
calls in Timing.py are now in try/except blocks if they don't succeed.  Dump 
the console logs if this happens again.

Original comment by seth.w.law@gmail.com on 22 Jul 2011 at 5:34

GoogleCodeExporter commented 8 years ago
Might consider matching exposing additional regex and format pairs in 
configuration for analyzer.  That way, if there is some particularly 
troublesome date format, the user could add format instead of customizing 
Timing analyzer.

Original comment by gfleisch...@gmail.com on 22 Jul 2011 at 6:47