Python AWeber API抛出异常:timestmap、nonce、consumer\u key的组合必须是uniqu

2024-04-19 10:34:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用Python的aweberapi(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

Tags: pathinpyhttpsselfcomapichild
1条回答
网友
1楼 · 发布于 2024-04-19 10:34:00

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

这是一个OAuth措施,以确保它不会多次处理完全相同的请求。e、 你的程序实际上在同一时间发送了两次命令。你知道吗

相关问题 更多 >