Bitbucket OAuth returns “Could not verify OAuth re

2019-05-26 01:27发布

I'm attempting to use bitbucket's API through Python with rauth. My get_request_token call fails with the error: 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.'

I wrote and tested this code a year ago and it worked then (on the same server, in fact). What is wrong now?

1条回答
手持菜刀,她持情操
2楼-- · 2019-05-26 02:07

My server's clock was not within five minutes of bitbucket's.

The answer was here: https://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+OAuth+Requests

Installing ntp solved this for me (on ubuntu, sudo apt-get install ntp).

查看更多
登录 后发表回答