Report this

What is the reason for this report?

Laravel using Managed Redist sometimes throws "Error while reading line from the server."

Posted on May 14, 2020

My Laravel app sometimes throws “Predis\Connection\ConnectionException - Error while reading line from the server.” exception. I used a managed Redis cluster from DigitalOcean. Do you guys face this type of error if yes how did you resolve?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi there @miigaa,

I’ve seen this in the past as well and I actually posted an answer on how to fix that here:

https://www.digitalocean.com/community/questions/how-to-setup-laravel-with-digitalocean-managed-redis-cluster

It includes a short video demo as well.

Let me know how it goes! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.