there was a masking error (while handling an error a new error was raised that masks the true cause of the problem) when dealing with failing to connect, this has now been fixed. Thanks to PGBouncer not starting before uWSGI for revealing this error to me