我想使用boto在SWF上註冊一個域。但是這個錯誤引發了我。有誰知道如何解決boto.exception.SWFResponseError:SWFResponseError:400在AWS上的錯誤請求GovCloud
Traceback (most recent call last):
File "register.py", line 17, in <module>
swf_entity.register()
File "/usr/local/lib/python2.7/dist-packages/boto/swf/layer2.py", line 67, in register
self.description)
File "/usr/local/lib/python2.7/dist-packages/boto/swf/layer1.py", line 827, in register_domain
'description': description,
File "/usr/local/lib/python2.7/dist-packages/boto/swf/layer1.py", line 118, in json_request
return self.make_request(action, json_input, object_hook)
File "/usr/local/lib/python2.7/dist-packages/boto/swf/layer1.py", line 145, in make_request
raise excp_cls(response.status, response.reason, body=json_body)
boto.exception.SWFResponseError: SWFResponseError: 400 Bad Request
{u'message': u'The security token included in the request is invalid.', u'__type': u'com.amazon.coral.service#UnrecognizedClientException'}
另外,在CLI中。
AWS SWF列表域--registration狀態REGISTERED
HTTPSConnectionPool(host='swf.swf.us-gov-west-1.amazonaws.com.amazonaws.com', port=443): Max retries exceeded with url:/(Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9bafd9b0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
一切其他AWS區域可以正常使用。但它不適用於AWS GovCloud(美國)地區。
在此先感謝。
感謝您的幫助添加區。 CLI正在工作。但博託SWF不工作。 boto.exception.SWFResponseError:SWFResponseError:400 Bad Request {u'message':u'請求中包含的安全令牌無效。',u'__ type':u'com.amazon.coral.service#UnrecognizedClientException'} –