我在django Web应用程序中进行ses连接时出现以下错误。仅在生产服务器Web应用程序中发生错误。 Boto ses连接在生产服务器和开发服务器中的python shell上运行良好。我正在努力寻找解决方案。请帮帮我。
Boto版本是2.38.0
boto [DEBUG]:Retrieving credentials from metadata server.
boto [ERROR]:Caught exception reading instance data
[error] Traceback (most recent call last):
[error] File "/usr/local/lib/python2.7/dist-packages/boto/utils.py", line 210, in retry_url
[error] r = opener.open(req, timeout=timeout)
[error] File "/usr/lib/python2.7/urllib2.py", line 406, in open
[error] response = meth(req, response)
[error] File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
[error] 'http', request, response, code, msg, hdrs)
[error] File "/usr/lib/python2.7/urllib2.py", line 444, in error
[error] return self._call_chain(*args)
[error] File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
[error] result = func(*args)
[error] File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
[error] raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
[error] HTTPError: HTTP Error 404: Not Found
[error] 2015-12-08 19:08:18,719 boto [ERROR]:Unable to read instance data, giving up
[error] <type 'exceptions.Exception'> No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV3Handler'] Check your credentials