project-sunbird / enc-service Goto Github PK
View Code? Open in Web Editor NEWEncryption service for Sunbird
License: MIT License
Encryption service for Sunbird
License: MIT License
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
(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
Build fails with below error:
#8 73.66 npm ERR! Linux 5.4.0-1104-azure
#8 73.66 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
#8 73.66 npm ERR! node v6.14.4
#8 73.66 npm ERR! npm v3.10.10
#8 73.66 npm ERR! path /home/enc/node_modules/.staging/@types/node-54e63457/package.json
#8 73.66 npm ERR! code ENOTDIR
#8 73.66 npm ERR! errno -20
#8 73.66 npm ERR! syscall open
#8 73.66
#8 73.66 npm ERR! ENOTDIR: not a directory, open '/home/enc/node_modules/.staging/@types/node-54e63457/package.json'
#8 73.66 npm ERR!
#8 73.66 npm ERR! If you need help, you may report this error at:
#8 73.66 npm ERR! https://github.com/npm/npm/issues
#8 73.72
#8 73.72 npm ERR! Please include the following file with any support request:
#8 73.72 npm ERR! /home/enc/npm-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.