Type error returned when starting attack
Author: joehepCreated May 10, 2018Updated Jun 17, 2021
I have built a Docker container using Ubuntu and am seeing the following error when I direct my bees to attack.
root@005e10755623:/data# bees attack -n 10000 -c 250 -u https://host.redacted.com/api
Read 5 bees from the roster: us-east-1a
Connecting to the hive.
Assembling bees.
Each of 5 bees will fire 2000 rounds, 50 at a time.
Stinging URL sequentially so it will be cached for the attack.
Organizing the swarm.
Bee 0 is joining the swarm.
Bee 1 is joining the swarm.
Bee 2 is joining the swarm.
Bee 3 is joining the swarm.
Bee 4 is joining the swarm.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/bees.py", line 801, in attack
summarized_results = _summarize_results(results, params, csv_filename)
File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/bees.py", line 543, in _summarize_results
complete_results = [r['complete_requests'] for r in summarized_results['complete_bees']]
TypeError: sequence index must be integer, not 'str'I have tried this on my Mac, Centos, and Ubuntu. I have used several versions of Python - from 2.7.10 to 3.6.5 an each has given the same error.
Source: newsapps/beeswithmachineguns