This article is relevant if you are developing NetSuite RESTLets and you are needing to frequently change your user role.
Background
When developing NetSuite RESTLets, it’s generally easier to work with a tool to exercise the NetSuite REST Endpoint. My favorite tool is called Postman offered as a chrome extension as well as a MAC application. You may experience following message when you call your REST endpoint after you change roles:
{
"error": { "code": "SESSION_TIMED_OUT", "message": "Your session has timed out. Please re-enter your information and try again." } }
Resolving the SESSION TIMED OUT Error Message
The basic way to resolve the timeout is to block your browser cookies from the host RESTLet system. For example, if you are developing against the sandbox, add a cookie exception to rest.sandbox.netsuite.com
Here is a quick 1:30 video that illustrates the challenge and how to resolve it.
Collaborate and Build with NetSuite Experts
If you love the NetSuite platform and are currently unappreciated for your special talents for innovation and high standards for care, perhaps we can work together? Send me a message about your background so we can get to know each other.
Related NetSuite RESTLet Articles
Here are some articles that I have previously written that relate to RESTLet development:
- Uncovered: How to use SuiteScript to Create Unpublished Saved Searches
- NetSuite Restlet Sample Program Exploits New Power
- Download a NetSuite OAuth Token Based Authentication Sample Node.js Program