Monday, January 28, 2019

RESTlet > Debugger > INVALID_HOST > Invalid host debugger.netsuite.com error when Cookie is specified

This error can be caused when including an Authorization Header.  The JSession specified in the Cookie should suffice.

To avoid this error, remove any Authorization header when debugging RESTlets.

 

2 comments:

  1. Thanks, worked for me.
    I was trying to call a RESTlet from postman.
    So, the url looks like this.
    https://debugger.na0.netsuite.com/app/site/hosting/restlet.nl?script=985&deploy=1
    And I added a header: Cookie with values as specified in Netsuite Debugger UI.

    ReplyDelete
  2. I did as explained by Unknown, but it does not works for me. The reponse is
    {
    "error": {
    "code": "SESSION_TIMED_OUT",
    "message": "Your session has timed out. Please re-enter your information and try again."
    }
    }

    ReplyDelete