Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Client Request Interrupted in Heroku

I am having a really strange problem with Heroku right now.

I can freely browse the website. But some operations are giving me the following error:

sock=client at=warning code=H27 desc="Client Request Interrupted" method=POST path="/api/upload/image/"

Based on these, I guess GET operations are working fine(e.g. browsing the pages), but POST operations are not(e.g. uploading images)

P.S. I am using Django

So, I thought it was my latest commit doing this. But even after I rolled back to yesterday's state when it was working, it is giving the same result.

Is this an internal Heroku problem and I should just wait? or is it me doing something wrong?

like image 322
Jahongir Rahmonov Avatar asked Oct 29 '15 18:10

Jahongir Rahmonov


2 Answers

It sounds like you may be running into Heroku's request timeout limit: they automatically cut off requests after 30 seconds

I've usually run into this when processing file uploads; Heroku's official recommendation is to upload files directly to S3 instead.

like image 88
Gabriel Grant Avatar answered Oct 07 '22 17:10

Gabriel Grant


It turned out that the problem is with my Internet Service Provider. They were doing some prophylactic work and external services such as Heroku were out of reach.

The solution was using a Tor browser until ISP get things done.

like image 35
Jahongir Rahmonov Avatar answered Oct 07 '22 16:10

Jahongir Rahmonov