0

我正在使用 Python 的 AWeber API (https://github.com/aweber/AWeber-API-Python-Library),我经常遇到这些异常。我不知道为什么会这样。有任何想法吗?

File "/<path>/aweber_api/entry.py", line 160, in __getattr__
    return self._child_collection(attr)

File "/<path>/aweber_api/entry.py", line 151, in _child_collection
    self._child_collections[attr] = self.load_from_url(url)

File "/<path>/aweber_api/base.py", line 38, in load_from_url
    response = self.adapter.request('GET', url)

File "/<path>/aweber_api/oauth.py", line 60, in request
    '{0}: {1}'.format(error_type, error_msg))

APIException: UnauthorizedError: Combination of nonce, timestamp, and consumer_key must be unique. https://labs.aweber.com/docs/troubleshooting#unauthorized
4

1 回答 1

1

错误消息实际上是由于 OAuth。您多次发送相同的请求。您需要再次生成请求(即使是相同的命令和参数)以获得新的时间戳和随机数。

这是一种 OAuth 措施,可确保它不会多次处理完全相同的请求。例如,您的程序实际上在同一时间发送了两次命令。

于 2012-07-01T03:14:24.600 回答