I'm having a weird problem. I have a REST API built with Phalcon, and at one occasion, a business-critical request silently dies half-way through the request, triggering an empty 200 from Phalcon.
I've been able to pinpoint some specifics regarding the error. It only appears if I have binary data sent with cURL, and it reaches my Bootstrap properly (where I run
Application::run(), but it doesn't reach my ACL plugin, which is next in line in my code.
Here's a cURL-request that triggers the issue:
curl -vv -X POST -f -L --data-binary "@-" -H "Content-type: application/x-www-form-urlencoded; charset=UTF-8" http://api.mysite.local/callback < callbackData.txt
callbackData.txt contains the following:
How can I troubleshoot this problem further? There's nothing in my PHP-logs.
EDIT FYI, there's nothing in the nginx error log, but the access log contains a proper record:
127.0.0.1 - - [27/Oct/2015:15:44:57 +0100] "POST /callback HTTP/1.1" 200 5 "-" "curl/7.43.0"