Backend fails (while reading config)
Summary
Backend wants to get configuration before it's being set.
Steps to reproduce
npm run start and query the backend.
Which version of the software did you use ?
master:latest
What is the current bug behavior?
It reads config before setting it (it's set later)
What is the expected correct behavior?
No error.
Relevant logs and/or screenshots
if (bodySize > configFile.backend.maxRequestBodySize) {
^
TypeError: Cannot read property 'backend' of undefined
at IncomingMessage.chunkGatherer (/home/jkrunic/Desktop/OpenStApps/backend/src/app.ts:77:33)
at IncomingMessage.emit (events.js:182:13)
at IncomingMessage.Readable.read (_stream_readable.js:486:10)
at flow (_stream_readable.js:922:34)
at resume_ (_stream_readable.js:904:3)
at process._tickCallback (internal/process/next_tick.js:63:19)