I'm encountering the same error when I connect PostgreSQL to my app and run migrations. Even though I set the port to 5402, the error still persists.