When I try to open postgraphile UI it's not working. I'm getting the following error.
A serious error occurred when building the initial schema. Exiting because
retryOnInitFail
is not set.Error: Connection terminated unexpectedly
at Connection. (D:\cars-assignment\node_modules\pg\lib\client.js:132:73)
at Object.onceWrapper (events.js:421:28)
at Connection.emit (events.js:315:20)
at Socket. (D:\cars-assignment\node_modules\pg\lib\connection.js:108:12)
at Socket.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1201:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
I'm using the following command
npx postgraphile -c postgres://username:SECRET@localhost:5000/db
How to resolve this issue?