误差:"包括在请求安全令牌无效"使用宝途蟒蛇时, [英] Error: "The security token included in the request is invalid" when using Boto python

查看:768
本文介绍了误差:"包括在请求安全令牌无效"使用宝途蟒蛇时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误,当我跑我的nginx的Django项目。我用dynamodb数据库和S3的服务项目中的静态文件。在本地主机上运行时,该项目运行正常。

I am getting this error when I run my django project on nginx. I use dynamodb for database and S3 for serving static files in the project. The project runs fine when operated on localhost.

该项目最初是在美国举行另一EC2实例在那里跑般的魅力。我启动了一个新的EC2实例从该实例的图像。而现在则是引发此错误。 问题是,

The project originally was hosted in another ec2 instance where it ran like charm. I fired up a new ec2 instance from an image of that instance. And now it is throwing this error. The thing is,

连接工作正常,当我的命令来运行一些测试code   行了。

the connection works fine when I run some test code on the command line.

但引发此错误的项目运行时。

But throws this error when the project runs.

JSONResponseError: 400 Bad Request
{u'message': u'The security token included in the request is invalid.', u'__type': u'com.amazon.coral.service#UnrecognizedClientException'}
Request Method: POST
Request URL:    http://ec2-54-200-144-115.us-west-2.compute.amazonaws.com/?attempt=1&code=AQBfOzPR4Hlgrpkjz-qXQj8b7OLq6cm1NM_oZf64Wz3EmlX2-VDS6qfZ5V5f0Tmbx4MrLc4SGuJxUHa8drQClz3A1IWMVqUGKLEEW_0ol1RqClI8cZViWreBm5c3HJ-Vp48Xx81a7gvXSjRNJUn-kazXqahDrgsAeLez_8FrXIb_HWHyekhnUmxgkskRGBNzcTtpqASNe3agzG3ZZowCMYi6bDBAdVuODli3ApWQWENSmjLaN5QbZWbGo3ATvJNMAUQjj6VTHCkVS-UWcuh-PtwAAFtUqb8HkLsbFG31KevwPKz6x10ojD45pe03zA1SF_g
Django Version: 1.5
Exception Type: JSONResponseError
Exception Value:    
JSONResponseError: 400 Bad Request
{u'message': u'The security token included in the request is invalid.', u'__type': u'com.amazon.coral.service#UnrecognizedClientException'}
Exception Location: /srv/www/test/local/lib/python2.7/site-packages/boto/dynamodb2/layer1.py in _retry_handler, line 1530
Python Executable:  /srv/www/test/bin/python
Python Version: 2.7.3

搞不明白是怎么回事。谁能帮我?

Can't understand what's going on. Can anyone help me?

推荐答案

您收到此消息,因为安全凭据/访问键为您的AWS账户已被更改。

You are getting this message since the security credentials / Access Keys for your AWS account has been changed.

再次尝试使用新的快捷键将正常工作。

Try again with new access keys it will work.

所有最优秀的。

这篇关于误差:"包括在请求安全令牌无效"使用宝途蟒蛇时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆