We would like to connect to the SFTP server but we can't connect and NetSuite is telling us that an error occurred while decrypting credentials. Here is a snippet from our code:
var connection = sftp.createConnection({
username: 'XXXXXXXXX',
passwordGuid: myPwdGuid, // references var myPwdGuid
url: 'XXX.XXX.XXX.XXX',
port : 22,
hostKey: myHostKey // references var myHostKey
});
And here is the error:
{"type":"error.SuiteScriptError","name":"AN_ERROR_OCCURRED_WHILE_DECRYPT_PASSWORDGUID", "message":"資格情報の復号中にエラーが発生しました。","stack":["createError(N/error)", "main(/SuiteScripts/xxxx/xxxx/upload/uploadCsvFile.js:100)"], "cause":{"type":"internal error","code":"AN_ERROR_OCCURRED_WHILE_DECRYPT_PASSWORDGUID", "details":"資格情報の復号中にエラーが発生しました。","userEvent":null,"stackTrace":["createError(N/error)", "main(/SuiteScripts/xxxx/xxxx/upload/uploadCsvFile.js:100)"],"notifyOff":false}, "id":"","notifyOff":false,"userFacing":false}
Anything that we missed from here? Thanks!