ONDC-Official / reference-implementations

ONDC reference apps
MIT License
27 stars 67 forks source link

utilities/on_subscibe-service/node/index.js wont compile or run #54

Open amitsingh08 opened 8 months ago

amitsingh08 commented 8 months ago

@nishthamongaondc while you've committed index.js - does it run on your instance? I'm unsure how .. since PRIVATE_KEY_1 is not defined.

Error log :

node index.js /Users/a/Documents/ondc/tech-ondc/ondc-reference-implementations/utilities/on_subscibe-service/node/index.js:33 key: Buffer.from(PRIVATE_KEY_1, 'base64'), // Decode private key from base64 ^

ReferenceError: PRIVATE_KEY_1 is not defined at Object. (/Users/a/Documents/ondc/tech-ondc/ondc-reference-implementations/utilities/on_subscibe-service/node/index.js:33:20) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47

Node.js v20.7.0

nishthamongaondc commented 8 months ago

Working towards it. Thanks