the problem was with mime package so I downgraded the package to 3.0.0 and the application is now working well