I applied the NetSuite patches (there were two set...
# suitecommerce
k
I applied the NetSuite patches (there were two sets of instructions in NetSuite help) for TBA to SCA 2019.1.7 code base. When running
gulp deploy --to
, I am getting the following error after selecting the “Choose your SSP Application” prompt:
Copy code
[11:02:21] Starting 'deploy'...
? Choose a saved token <a_token>
Using token <a_token>, run with --to to change it
? Choose your Hosting Files folder  <Hosting Files>
? Choose your Application Publisher <publisher folder>
? Choose your SSP Application <ssp application folder>
getFileNamedsearcherror Error: An unexpected error occurred.
  at /Users/keithfetterman/Projects/sca-20191/ns_npm_repository/suitetalk4node/src/communications.js:166:17
  at Parser.<anonymous> (/Users/keithfetterman/Projects/sca-20191/node_modules/xml2js/lib/parser.js:303:18)
  at Parser.emit (events.js:189:13)
  at Parser.EventEmitter.emit (domain.js:441:20)
  at SAXParser.onclosetag (/Users/keithfetterman/Projects/sca-20191/node_modules/xml2js/lib/parser.js:261:26)
  at emit (/Users/keithfetterman/Projects/sca-20191/node_modules/sax/lib/sax.js:624:35)
  at emitNode (/Users/keithfetterman/Projects/sca-20191/node_modules/sax/lib/sax.js:629:5)
  at closeTag (/Users/keithfetterman/Projects/sca-20191/node_modules/sax/lib/sax.js:889:7)
  at SAXParser.write (/Users/keithfetterman/Projects/sca-20191/node_modules/sax/lib/sax.js:1436:13)
  at Parser.exports.Parser.Parser.parseString (/Users/keithfetterman/Projects/sca-20191/node_modules/xml2js/lib/parser.js:322:31)
[11:02:38] 'deploy' errored after 18 s
[11:02:38] Error in plugin "gulp-ns-deploy"
Message:
  An unexpected error occurred.
Details:
  domainEmitter: [object Object]
  domain: [object Object]
  domainThrown: false
Has anyone encountered this error before after applying the TBA patch instructions to an older version of SCA, especially 2019.1.7?
I discovered the issue. The patch instructions provided by NetSuite contained corrupted code for passport.tpl file. There are hidden characters embedded in the code when you copy it.
s
Oh really? If you can be more specific I can get the docs updated
k
@Steve Goldberg, I just saw your post. Sorry it took so long. I will find the corrupted statements in the instructions and post.
@Steve Goldberg, The corrupted code can be found in the “Modify the passport.tpl File in the NPM Repository” section in the “Enable Token-Based Authentication (Aconcagua and Later Versions)” NetSuite Help page: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_161109639471.html#subsect_161117529388 The code in the section “And replace them with the following code:” contains hidden invalid or control characters. The characters are located between the “{{” and the “credentials” text on all of the {{#if credentials}} lines. I have attached a screenshot. In WebStorm, these hidden characters are identified by text “ZWNJ”.
d
FWIW, the 'find the following lines..' section also has the zmnj chars in the same position
{�{credentials
...
s
Thanks, I have alerted our tech writers
Tech writers were already aware of this issue as it was affecting some other code samples on other pages too. They're reviewing all the code samples and updates should be pushed to Help Center in the next week or two.
👍 1