这是我使用 OAuth1.0 库生成的 OAuth 标头。下面给出。
{"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"}
Run Code Online (Sandbox Code Playgroud)
我不断收到如下所示的 USER_ ERROR
"error" : {"code" : "INVALID_REQUEST", "message" : "The request could not be understood by the server due to malformed syntax."}}
Run Code Online (Sandbox Code Playgroud)
谁能告诉我我哪里出错了?
感谢所有的帮助!
小智 6
从 Netsuite 版本 2021.2 开始,不推荐使用带有 HMAC-SHA1 签名方法的 TBA(基于令牌的身份验证)。而主动使用 HMAC-SHA1 的用户必须切换到 HMAC-SHA256。否则,用户可能会发现以下错误并带有 4xx 错误代码
{
"error": {
"code": "INVALID_REQUEST",
"message": "The request could not be understood by the server due to malformed syntax."
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1904 次 |
| 最近记录: |