You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] [ApiClient] : TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
#5
Open
merugus opened this issue
May 30, 2021
· 0 comments
While running flexjs example locally it throws below error. I have verified keys and works fine from live console.
[2021-05-29T23:59:08.330Z] [ERROR] [ApiClient] : TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (buffer.js:333:9)
at Object.exports.generateDigest (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\authentication\payloadDigest\DigestGenerator.js:13:29)
at exports.callAuthenticationHeader (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\ApiClient.js:409:36)
at exports.callApi (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\ApiClient.js:507:25)
at exports.generatePublicKey (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\api\KeyGenerationApi.js:97:29)
at C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\app.js:88:26
at Layer.handle [as handle_request] (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\layer.js:95:5)
at next (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\layer.js:95:5)
The text was updated successfully, but these errors were encountered:
While running flexjs example locally it throws below error. I have verified keys and works fine from live console.
[2021-05-29T23:59:08.330Z] [ERROR] [ApiClient] : TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (buffer.js:333:9)
at Object.exports.generateDigest (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\authentication\payloadDigest\DigestGenerator.js:13:29)
at exports.callAuthenticationHeader (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\ApiClient.js:409:36)
at exports.callApi (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\ApiClient.js:507:25)
at exports.generatePublicKey (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\cybersource-rest-client\src\api\KeyGenerationApi.js:97:29)
at C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\app.js:88:26
at Layer.handle [as handle_request] (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\layer.js:95:5)
at next (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\work\HPP\cybersource-flex-samples-node-master\express-flexjs\node_modules\express\lib\router\layer.js:95:5)
The text was updated successfully, but these errors were encountered: