exceptions.AttributeError: 'NoneType' object has no attribute 'strip'
See original GitHub issueHi Folks,
I´m trying to run the Autobahn test suite in “fuzzingclient” mode against a custom websocket server to discover connection and compatibility issues in the custom websocket implementation. The http traffic runs over two proxy servers (Traefik, Nginx).
I execute the test suite with the following command line:
wstest -d -m fuzzingclient -o report.html | tee output.txt
The problem is that the test never finishes. However, the following exception is dumped to the console:
Traceback (most recent call last):
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/wstest.py", line 346, in run
start(options, spec)
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/wstest.py", line 280, in start
reactor.run()
File "/home/cluick/wstest/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1243, in run
self.mainLoop()
File "/home/cluick/wstest/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1252, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/home/cluick/wstest/local/lib/python2.7/site-packages/twisted/internet/base.py", line 878, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/home/cluick/wstest/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 479, in connectionLost
self.connector.connectionLost(reason)
File "/home/cluick/wstest/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1136, in connectionLost
self.factory.clientConnectionLost(self, reason)
File "/home/cluick/wstest/local/lib/python2.7/site-packages/twisted/protocols/policies.py", line 167, in clientConnectionLost
self.wrappedFactory.clientConnectionLost(connector, reason)
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/fuzzing.py", line 1292, in clientConnectionLost
self.createReports()
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/fuzzing.py", line 469, in createReports
self.createMasterReportHTML(self.outdir)
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/fuzzing.py", line 670, in createMasterReportHTML
agent_case_report_file = self.makeAgentCaseReportFilename(agentId, caseId, ext = 'html')
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/fuzzing.py", line 498, in makeAgentCaseReportFilename
return self.cleanForFilename(agentId) + "_case_" + c + "." + ext
File "/home/cluick/wstest/local/lib/python2.7/site-packages/autobahntestsuite/fuzzing.py", line 487, in cleanForFilename
s0 = ''.join([c if c in "abcdefghjiklmnopqrstuvwxyz0123456789" else " " for c in str.strip().lower()])
exceptions.AttributeError: 'NoneType' object has no attribute 'strip'
The complete test directory including the console output can be found in the following ZIP file: wstest.zip
I´m using wstest version 17.5.0.
Can you please tell me what is going wrong here?
Thank you & best regards, Christof Luick.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
AttributeError: 'NoneType' object has no attribute 'strip'
The issue is I keep getting the below error and cannot figure it out at all... Any help would be appreciated! Traceback (most...
Read more >AttributeError: 'NoneType' object has no attribute 'strip' #70
The error is because the python str method .strip() is trying to operate on a None, rather than the expected string. The only...
Read more >10765 (AttributeError: 'NoneType' object has no attribute 'strip')
When he fills out the form and posts it he receives the following error message: AttributeError: 'NoneType' object has no attribute 'strip'.
Read more >Error: 'NoneType' object has no attribute 'strip' - Google Groups
When I save the record in database I get this error: Error: 'NoneType' object has no attribute 'strip'. My model is: from django.db...
Read more >how to rectify python AttributeError: 'NoneType' object has no ...
In line 51: head1,seq1,placeholder1,qual1=[i.strip() for i in entry]. a list comprehension is being used to iterate through the contents of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m hitting this same error, both when I try to run locally on Ubuntu 16.04 or using the crossbar-docker/autobahn-testsuite container. My versions are the same:
Well, as I told you, I am not an expert.
I know that Autobahn uses the user agent information on the header of the report table and It was what was crashing the autobahn in my specific case.