KV_KP wrote on May 28, 2019:
While configuring, I have done the following:
-
using mingw32.exe, verified that I have Python 2.7.15
-
performed the easy_intall awscli
-
ran aws configure with my id and keys.
-
installed boto3 with easy_install boto 3
-
updated the configure.json file’s attributes:
{
“afr_source_dir”:“C:/Users/KV/Desktop/AWS_eval/amazon-freertos-master”,
“thing_name”:“KV_ESP32_thing”,
“wifi_ssid”:“xxxx”,
“wifi_password”:“xxxx”,
“wifi_security”:“WPA2”
}
//note- for ssid and password, i don’t have xxxx in my actual file. I have my actual ssid and password. -
Now I was trying to run the python SetupAWS.py setup from mingw32 shell but got the below error:
======================
$ python SetupAWS.py setup
Traceback (most recent call last):
File “SetupAWS.py”, line 205, in
setup()
File “SetupAWS.py”, line 157, in setup
prereq()
File “SetupAWS.py”, line 27, in prereq
if not thing_obj.create():
File “thing.py”, line 13, in create
assert self.exists() == False, “Thing already exists”
File “thing.py”, line 25, in exists
list_of_things = self.client.list_things()[‘things’]
File “C:/msys32/mingw32/lib/python2.7/site-packages/botocore-1.12.156-py2.7.egg/botocore/client.py”, line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File “C:/msys32/mingw32/lib/python2.7/site-packages/botocore-1.12.156-py2.7.egg/botocore/client.py”, line 661, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (500) when calling the ListThings operation (reached max retries: 4): Internal server error
======================
Appreciate any help, I am not sure what I am missing.
Other notes:
- my current file location for this is:
C:\Users\x007007\Desktop\AWS_eval\amazon-freertos-master\tools\aws_config_quick_start
Normally, this script supposed to do the following:
- Creates an IoT thing, certificate, and policy
- Attaches the IoT policy to the certificate and the certificate to the AWS IoT thing
- Populates the aws_clientcredential.h file with your AWS IoT endpoint, Wi-Fi SSID, and credentials
- Formats your certificate and private key and writes them to the aws_clientcredential.h header file