FlowService (error) (bot: <bot_name>) Could not load flows [error, sorry, too many clients already]

Good day,

I am getting the following error in my logs. How can I remedy the situation?

Wed Jun 17 2020 06:45:23 GMT+0200 (South Africa Standard Time) FlowService (error) (bot: <bot_name>) Could not load flows [error, sorry, too many clients already]
STACK TRACE
error: sorry, too many clients already
    at Connection.parseE (C:\snapshot\build-windows\node_modules\pg\lib\connection.js:601:11)
    at Connection.parseMessage (C:\snapshot\build-windows\node_modules\pg\lib\connection.js:398:19)
    at Socket.<anonymous> (C:\snapshot\build-windows\node_modules\pg\lib\connection.js:120:22)
    at Socket.emit (events.js:182:13)
    at Socket.EventEmitter.emit (domain.js:442:20)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onread (net.js:635:20)

Fixed using this thread .

1 Like

Hi @DigiSenseiZim,

In your case, did you need to increment the number of maximum connections allowed, or did you reduce the initial connection pool?

I went the increment route since the connections were necesary