Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when start a scan using hammer bot #129

Open
oleksii-dowjones opened this issue May 12, 2020 · 0 comments
Open

Exception when start a scan using hammer bot #129

oleksii-dowjones opened this issue May 12, 2020 · 0 comments

Comments

@oleksii-dowjones
Copy link
Contributor

I ran: scan account 123
Got this:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/slackbot/dispatcher.py", line 55, in _dispatch_msg_handler
func(Message(self._client, msg), *args)
File "/hammer-correlation-engine/bot/commands.py", line 322, in start_scan_conversation
return ask_question(message, 0)
File "/hammer-correlation-engine/bot/commands.py", line 291, in ask_question
QUESTIONS[question_number]'question_func'
File "/hammer-correlation-engine/bot/commands.py", line 275, in ask_regions
supported_regions = config.aws.regions
File "/hammer-correlation-engine/library/config.py", line 466, in regions
ec2 = boto3.client('ec2')
File "/usr/local/lib/python3.6/site-packages/boto3/init.py", line 91, in client
return _get_default_session().client(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/boto3/session.py", line 263, in client
aws_session_token=aws_session_token, config=config)
File "/root/.local/lib/python3.6/site-packages/botocore/session.py", line 838, in create_client
client_config=config, api_version=api_version)
File "/root/.local/lib/python3.6/site-packages/botocore/client.py", line 86, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/root/.local/lib/python3.6/site-packages/botocore/client.py", line 328, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/root/.local/lib/python3.6/site-packages/botocore/args.py", line 73, in get_client_args
endpoint_url, is_secure, scoped_config)
File "/root/.local/lib/python3.6/site-packages/botocore/args.py", line 155, in compute_client_args
endpoint_bridge=endpoint_bridge,
File "/root/.local/lib/python3.6/site-packages/botocore/args.py", line 230, in _compute_endpoint_config
service_name, region_name, endpoint_url, is_secure)
File "/root/.local/lib/python3.6/site-packages/botocore/client.py", line 402, in resolve
service_name, region_name)
File "/root/.local/lib/python3.6/site-packages/botocore/regions.py", line 122, in construct_endpoint
partition, service_name, region_name)
File "/root/.local/lib/python3.6/site-packages/botocore/regions.py", line 135, in _endpoint_for_partition
raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant