How to fix a Restlet request error in Postman while testing

  • Check if the Restlet URL used is correct compared with the Restlet script record ‘External URL link’ field value.
  • Check if the Request type is correct(GET/POST/PUT…)
  • Check if correct values are used for consumer key, consumer secret, access token, and token secret.
    We can create a new integration in NetSuite through navigation: SetUp > Integration > Manage Integrations > New. On generating a new integration we will get ‘Consumer Key’ and ‘Consumer secret’ for accessing a Restlet through Postman.
    We can also make access tokens using navigation SetUp > Users/Roles > Access Tokens > New.
    The values of consumer key, consumer secret, access token, and token secret will be visible only once at the creation of the ‘Integration’ record and ‘Access Tokens’. Hence, we have to save it somewhere safe.
  • Check if the parameters used are valid and of the type required.
  • Check if the ‘Signature Method’ is ‘HMAC-SHA256’.Using ‘HMAC-SHA1’ sometimes causes errors.
  • If all these values are correct, it is probably a permission issue. So check the user record used for making the access tokens have enough permissions to access the record values requested through the API request.

Leave a comment

Your email address will not be published. Required fields are marked *