Why do H27 errors happen?

Issue

You're unsure why you're receiving H27 errors on your application.

Resolution

The causes of H27 errors are often hard to pin down as it involves the client (i.e. the users browser) opening a request and then closing the connection before a response can be returned.

https://devcenter.heroku.com/articles/error-codes#h27-client-request-interrupted

We see this most often when apps have a user base with a high number of mobile clients in areas of poor connectivity. It can also happen on lossy public wifi or other problematic internet connections. As the error occurs at the client level it's impossible to identify the root cause.

You might think this an indication that your code could be optimised and made to run faster, reducing your chances that users abandon the site. However, this is very unlikely the issue. H27s can be a bit frustrating to solve since the cause is from the client and not the servers, but it's not considered a critical error.

This doesn't indicate anything wrong with your Heroku app or the Heroku router. The client initiates the disconnect from the router -- not the other way around. The H27 error is simply a report of the fact that this event has occurred and does not point to a Heroku Platform issue.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support