FastCGI sent in stderr: "PHP message: POST error: Unexpected response (code 411)

Posted April 18, 2019 6k views
APIUbuntu 16.04

Hi I have used google cloud print to print order from customers I use WordPress and woocommerce for store my product I have to use a plugin to connect the printer with Google cloud printing but after put the API key is was an error with Authentication failed (411) header request I have sue Nginx server PHP 7.0 with default config have any idea for help or the topic for resole Thank you in advance for your help

error log

2019/04/18 09:10:55 [error] 2615#2615: *1297 FastCGI sent in stderr: “PHP message: POST error: Unexpected response (code 411): a:6:{s:7:"headers”;O:42:“RequestsUtilityCaseInsensitiveDictionary”:1:{s:7:“” while reading response header from upstream, client:, server:, request: “GET /wp-admin/options-general.php?page=xcwoocloud_settings HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “”, referrer: “

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


In this case it looks like you’re getting a 411 error, which means that your application is not returning a Content- Length header. Fixing this is most likely going to require the developer of the plugin to weigh in.


  • Hi jarland
    Thank you for your reply I have test plugin on my home live server is working but after upload to the digitalocean cloud server with the same config is was an error still confuse.