gpt4 book ai didi

oauth - 这个 OAuth header 有什么问题?

转载 作者:行者123 更新时间:2023-12-05 08:42:07 26 4
gpt4 key购买 nike

这是我使用 OAuth1.0 库生成的 OAuth header 。给出如下。

 {"Authorization":"OAuth realm=\"TSTDRV1606019\",oauth_consumer_key=\"c85f08d536fb43ffbf199896b970af6cc8ae3b9ffbd4d5a8d7bd35c36bbc58be\",oauth_nonce=\"PxTkoW9AHGgo36obe2qL\",oauth_signature=\"60eebfff6843f7fb652f98ce6dd65fe025d9837e\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1497605488\",oauth_version=\"1.0\"","content-type":"application/json"} 

我一直收到如下所示的 USER_ERROR

 "error" : {"code" : "INVALID_REQUEST", "message" : "The request could not be understood by the server due to malformed syntax."}}

谁能告诉我哪里出错了?

感谢所有帮助!

最佳答案

从 Netsuite 2021.2 版开始,使用 HMAC-SHA1 签名方法的 TBA(基于 token 的身份验证)已被弃用。并且积极使用 HMAC-SHA1 的用户必须切换到 HMAC-SHA256。否则,用户可能会发现以下错误代码为 4xx

{
"error": {
"code": "INVALID_REQUEST",
"message": "The request could not be understood by the server due to malformed syntax."
}
}

关于oauth - 这个 OAuth header 有什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44586880/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com