New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get 502 Bad Gateway when AJAX Request #5
Comments
I'v fixed it, you can test again. |
Hi, Thank you but unfortunately, it's still not working. When the time collector is loaded, it will throw the error. |
Hi,I don't know where to get phalcon 1.3.6, so I test ajax request on Phalcon 1.3.5/PHP5.4/Ubuntu14.04/Nginx 1.8 using the INVO project. This is my test code:
views/index.volt:
It works ok. Could you tell me any more infomation about your problem. Linux or Wn? Simple App , Mulit module or Micro App? I suggest you test on phalcon 1.3..4/1.3.5, because they are offical version. Also, You can go on debuging into TimeDateCollector::collect method . It's a very simple method, so you can comment line by line to find out the 'culprit' line. Thank you for your test, I hope we can fix it togethor. |
I am using version 1.3.4, not 1.3.6, sorry for wrong information provided. My Application is separate into 2 modules, which is frontend and backend. We found the collector have problem only when it counted to 10, so we disabled it temporary as workaround. foreach ($this->collectors as $name => $collector) {
if($count!=10) {
$this->data[$name] = $collector->collect();
}
$count++;
} |
I had test again, but it work. Maybe you could copy a config file to your project directory instead the default config file, like this:
you could disable any unnecessary collectors or disable capture ajax request by edit your config file. |
Phalcon version: 1.3.6
Php version : 5.5.19
When we return the json format as response to Ajax, it will occur error 502: Bad Gateway.
If we disable the phalcon-debugbar, everything is fine.
I also tested it in phalcon version 2.0.2, but it was fine.
The text was updated successfully, but these errors were encountered: