我在写一个使用OpenStack和Runabove API的python脚本。我想从Runabove API生成一个用于连接SwiftClient的令牌。无法从Runabove API获取令牌(Openstack swift)
run = Runabove(app_key, app_secret, consumer_key)
token = run.tokens.get()
它来自有:https://github.com/runabove/python-runabove/blob/master/examples/openstack/openstack.py(线82 - > 85)
此代码提出:
raise BadParametersError(msg=json_result.get('message'))
runabove.exception.BadParametersError: Invalid signature
这意味着HTTPError 400上升: https://github.com/runabove/python-runabove/blob/master/runabove/wrapper_api.py(线164)
我不知道我的问题可以从哪里来,我100%肯定我的钥匙/秘密是正确的。
感谢
这可能有所帮助: https://github.com/runabove/python-runabove – navyad