We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

getHeaders 502

public function indexAction()
{
    print_r($this->request->getHeaders());
}

error 502

why?



43.9k

Hi,

I think that this kind of http error (502 = Bad gateway) doesn't have anything to do with phalcon.

Does the application work okay if you remove the "print_r(...)" ?

Happens the same for me. It works fine if you don't access the headers...