2

我正在尝试通过 Python 和 rauth 使用 bitbucket 的 API。我的get_request_token电话因错误而失败:Key Error: 'Decoder failed to handle oauth_token with data as returned by provider. A different decoder may be needed. Provider returned: Could not verify OAuth request.'

我在一年前编写并测试了这段代码,然后它就可以工作了(实际上是在同一台服务器上)。现在有什么问题?

4

1 回答 1

3

我服务器的时钟不在 bitbucket 的五分钟内。

答案在这里:https ://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+OAuth+Requests

安装 ntp 为我解决了这个问题(在 ubuntu 上sudo apt-get install ntp)。

于 2014-07-18T23:41:37.193 回答