Resolve UNEXPECTED ERROR When Using log.debug on URL With Parameters Using SuiteScript 2.0 N/log Module

Scenario: User is encountering UNEXPECTED ERROR when using the log.debug function of the N/log Module to log URL with stringified array parameters such as: /app/site/hosting/scriptlet.nl?script=<scriptid>&deploy=<deployid>&compid=<companyid>&ordersArray=%5B123152%2C1521512%5D Solution: To prevent encountering the error, User should utilize the JavaScript native method encodeURI() to escape reserved characters in the URL string. Include the encodeURI() method before displaying the URL… Continue reading Resolve UNEXPECTED ERROR When Using log.debug on URL With Parameters Using SuiteScript 2.0 N/log Module