Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Comments

@merugus
Copy link

merugus commented May 30, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant