問題描述
如何解決 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 Umar、Muhammad Umar)