This is my code in my module observer
-----------------------------------------




    namespace Customtest\Customlogin\Observer;
    
    use \Magento\Framework\Event\Observer;
    
    use \Magento\Framework\Event\ObserverInterface;
    
    class CustomerLogin implements ObserverInterface
    {
    
      
         protected $_request;
    
      public function __construct(
    
          \Magento\Framework\App\RequestInterface $request
    
    
      ) {
    
          $this->_request = $request;
    
      }
      public function execute(Observer $observer) {
    
                $post = $this->_request->getPost('login');
    
                var_dump($post) ;
    
      }
    
    }



This code is work in localhost but when I upload to live server,  Browser

 show  "`http error 500`"