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 during Decryption #1

Open
eisks opened this issue Dec 14, 2017 · 0 comments
Open

Error during Decryption #1

eisks opened this issue Dec 14, 2017 · 0 comments

Comments

@eisks
Copy link

eisks commented Dec 14, 2017

We have installed the code base and testing in our environemnt.
(1) Encryption is working fine,
(2) When we are decrypting we are getting the following error.

Installed verisons
(1) node-v8.9.2-linux-x64
(2) postgresql-10.1-1-linux-x64

Server Console Message:

(node:7319) DeprecationWarning: Using the automatically created return value from client.query as an event emitter is deprecated and will be removed in [email protected]. Please see the upgrade guide at https://node-postgres.com/guides/upgrading
Executed (default): SELECT "id", "public", "private", "type", "active", "createdAt", "updatedAt" FROM "Keys" AS "Keys"; Elapsed time: 27ms
KeyService listening on port 8013 in development mode
POST /decrypt 500 84.788 ms - 1645
TypeError: Cannot read property 'private' of undefined
at decryptValue (/opt/enc-service-master/app.js:94:57)
at app.post (/opt/enc-service-master/app.js:55:21)
at Layer.handle [as handle_request] (/opt/enc-service-master/node_modules/express/lib/router/layer.js:95:5)
at next (/opt/enc-service-master/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/opt/enc-service-master/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/opt/enc-service-master/node_modules/express/lib/router/layer.js:95:5)
at /opt/enc-service-master/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/opt/enc-service-master/node_modules/express/lib/router/index.js:335:12)
at next (/opt/enc-service-master/node_modules/express/lib/router/index.js:275:10)
at /opt/enc-service-master/node_modules/body-parser/lib/read.js:130:5
at invokeCallback (/opt/enc-service-master/node_modules/raw-body/index.js:262:16)
at done (/opt/enc-service-master/node_modules/raw-body/index.js:251:7)
at IncomingMessage.onEnd (/opt/enc-service-master/node_modules/raw-body/index.js:307:7)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
POST /encrypt 200 15.806 ms - 99

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

No branches or pull requests

1 participant