Skip to content

Instantly share code, notes, and snippets.

@CaseyMcCarthy
Created March 26, 2019 19:05
Show Gist options
  • Save CaseyMcCarthy/433ee0d3a9e304ad7e473e3ef1e68870 to your computer and use it in GitHub Desktop.
Save CaseyMcCarthy/433ee0d3a9e304ad7e473e3ef1e68870 to your computer and use it in GitHub Desktop.
Unhandled rejection TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at Function.Buffer.from (buffer.js:202:9)
at new Buffer (buffer.js:158:17)
at createIdFromPreviousOutputScriptPubKey (/home/ubuntu/vestiapi/node_modules/cc-assetid-encoder/assetIdEncoder.js:37:16)
at module.exports (/home/ubuntu/vestiapi/node_modules/cc-assetid-encoder/assetIdEncoder.js:126:12)
at encodeAssetIdInfo (/home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:537:17)
at /home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:277:25
at Array.some (<anonymous>)
at /home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:270:39
From previous event:
at /home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:258:8
From previous event:
at addInputsForIssueTransaction (/home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:226:10)
at /home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:212:12
From previous event:
at createIssueTransaction (/home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:208:10)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at tryIssueAsset (/home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:181:6)
at /home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:150:14
at /home/ubuntu/vestiapi/node_modules/bitcoin/lib/index.js:37:8
at /home/ubuntu/vestiapi/node_modules/bitcoin/lib/jsonrpc.js:138:13
at Array.forEach (<anonymous>)
at IncomingMessage.<anonymous> (/home/ubuntu/vestiapi/node_modules/bitcoin/lib/jsonrpc.js:127:15)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)
From previous event:
at createRentalAsset (/home/ubuntu/vestiapi/src/helpers/digibyte/asset.js:118:6)
at /home/ubuntu/vestiapi/src/api/application/application.model.js:266:9
From previous event:
at /home/ubuntu/vestiapi/src/api/application/application.model.js:265:8
From previous event:
at Model.Application.completeApplication (/home/ubuntu/vestiapi/src/api/application/application.model.js:226:10)
at /home/ubuntu/vestiapi/src/api/application/controller.js:137:38
From previous event:
at completeApplication (/home/ubuntu/vestiapi/src/api/application/controller.js:137:6)
at Layer.handle [as handle_request] (/home/ubuntu/vestiapi/node_modules/express/lib/router/layer.js:95:5)
at next (/home/ubuntu/vestiapi/node_modules/express/lib/router/route.js:137:13)
at next (/home/ubuntu/vestiapi/node_modules/composable-middleware/lib/composable-middleware.js:40:9)
at /home/ubuntu/vestiapi/src/auth/auth.service.js:50:13
From previous event:
at /home/ubuntu/vestiapi/src/auth/auth.service.js:44:12
at /home/ubuntu/vestiapi/node_modules/cognito-express/lib/strategy.js:130:20
at /home/ubuntu/vestiapi/node_modules/cognito-express/node_modules/jsonwebtoken/verify.js:223:12
at getSecret (/home/ubuntu/vestiapi/node_modules/cognito-express/node_modules/jsonwebtoken/verify.js:90:14)
at Object.module.exports [as verify] (/home/ubuntu/vestiapi/node_modules/cognito-express/node_modules/jsonwebtoken/verify.js:94:10)
at jwtVerify (/home/ubuntu/vestiapi/node_modules/cognito-express/lib/strategy.js:121:9)
at p.promise.then (/home/ubuntu/vestiapi/node_modules/cognito-express/lib/strategy.js:73:17)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment