如何解決 Netsuite Restlets 中的 400 bad request 錯誤? (How to solve 400 bad request error in Netsuite Restlets?)


問題描述

如何解決 Netsuite Restlets 中的 400 bad request 錯誤? (How to solve 400 bad request error in Netsuite Restlets?)

我正在開展一個項目,我正在使用 restlest 從我的網站與 Netsuite 進行通信。我正在使用 OAuth 1.0。它工作正常。但是,現在我面臨 400 bad request 錯誤。我認為我的代碼存在一些問題,但我嘗試從 Postman 調用 restlet 並仍然收到相同的錯誤。我有另一個項目運行良好,但現在出現同樣的錯誤。任何幫助將不勝感激。


參考解法

方法 1:

Found the issue. The Signature method before the 2021 release was HMAC‑SHA1 which is now deprecated. I used the HMAC‑SHA256 method and this resolved the issue.

(by Muhammad UmarMuhammad Umar)

參考文件

  1. How to solve 400 bad request error in Netsuite Restlets? (CC BY‑SA 2.5/3.0/4.0)

#OAuth #restlet-2.0 #netsuite #suitescript #http-status-code-400






相關問題

我在哪裡可以在谷歌上為 xoauth 註冊 Android 應用以獲取消費者密鑰和消費者秘密 (where can I register Android app on google for xoauth for consumer key and consumer secret)

PHP Twitter OAuth - 我無法驗證我的帳戶 (PHP Twitter OAuth - I cannot authenticate my account)

dapatkan kontak aol menggunakan oauth api (get aol contacts using oauth api)

Otentikasi permanen Google Latitude API untuk akun tertentu (Google Latitude API permanent auth for specific account)

Перанакіраванне ад даччынага акна да бацькоўскага ў iframe з дапамогай javascript (OAuth) (Redirecting from child window to parent to a iframe using javascript (OAuth))

Linkedin 應用程序具有 OAuth 用戶令牌和 OAuth 用戶密鑰,它們會過期嗎? (Linkedin Application has OAuth User Token and OAuth User Secret, Do they Expire?)

jhipster oauth:如何通過 CURL 獲取令牌 (jhipster oauth : How can i get the token via CURL)

在 android (eclipse) 中集成 oAuth twitter 時清除共享首選項 (Clearing shared preferences in case of oAuth twitter integration in android (eclipse))

Spring Boot 2 Oauth 如何實現隱式代碼流 (Spring Boot 2 Oauth how to implement Implicit Code Flow)

ASP.NET Web App 的授權代碼流代碼示例 (Authorization Code Flow code examples for ASP.NET Web App)

從 AuthURL 和 ClientID 獲取 OAuth2.0 Bearer Token (Get OAuth2.0 Bearer Token from AuthURL and ClientID)

如何解決 Netsuite Restlets 中的 400 bad request 錯誤? (How to solve 400 bad request error in Netsuite Restlets?)







留言討論