standalone nodejs api proxy error

Not applicable

Hi I have a nodejs standalone app hosted in Apigee Private Cloud 4.15.07.

at runtime I get this exception... Any ideas?

stderr svr.700 *** Error in Node.js script: "Object of type class io.apigee.trireme.core.modules.Buffer$BufferImpl expected": at crypto.js:416 at sign (/organization/environment/api/node_modules/jsonwebtoken/node_modules/jws/node_modules/jwa/index.js:54) at jwsSign (/organization/environment/api/node_modules/jsonwebtoken/node_modules/jws/lib/sign-stream.js:23) at /organization/environment/api/node_modules/jsonwebtoken/sign.js:138 at /organization/environment/api/server.js:45 at emit (events.js:98) at adaptorhttp.js:550 at domain.js:183 at domain.js:123 at adaptorhttp.js:549 at adaptorhttp.js:620
1 3 323
3 REPLIES 3

Not applicable

Hello @LZ Dev,

I am not sure what the node.js is doing. But by looking at the error, it seems the crypto.js has some issue while working on the JW tokens.

May be we should see if something is wrong there. May be some node.js libs are missing.

@LZ Dev are you able to run this without any errors on your desktop on a node.js v8 runtime?

Yes i was able to