No matter what I do, I am facing this issue while using this library.
openssl(['x509', '-noout', '-text', '-in', ca.pem, function (err, buffer) {
console.log(err.toString(), buffer.toString());
}]);
openssl(['x509', '-noout', '-text', '-in', { name:'ca.pem', buffer: BufferVariable }], (output) => console.log(output.toString()));
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "TypeError: element.includes is not a function",
"reason": {
"errorType": "TypeError",
"errorMessage": "element.includes is not a function",
"stack": [
"TypeError: element.includes is not a function",
" at checkCommandForIO (/var/task/node_modules/@amzn/interceptor-core/node_modules/openssl-nodejs/src/index.js:17:46)",
" at openssl (/var/task/node_modules/@amzn/interceptor-core/node_modules/openssl-nodejs/src/index.js:69:13)",
" at getKeyFromURL (/var/task/node_modules/@amzn/interceptor-core/src/token-validator.js:53:3)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
},
"promise": {},
"stack": [
"Runtime.UnhandledPromiseRejection: TypeError: element.includes is not a function",
" at process.<anonymous> (/var/runtime/index.js:35:15)",
" at process.emit (events.js:314:20)",
" at processPromiseRejections (internal/process/promises.js:209:33)",
" at processTicksAndRejections (internal/process/task_queues.js:98:32)"
]
}