I am getting "Failed to load resource: net::ERR_EMPTY_RESPONSE"
error for my api calls if console is not opened. However if console is opened, the api calls work fine. Angular2 is used on frontend side and NodeJS for backend.Can someone please help?
Asked
Active
Viewed 6,084 times
2

Boulboulouboule
- 4,087
- 1
- 13
- 29

RemyaJ
- 5,358
- 4
- 22
- 41
-
check if there are console.logs in your app. Try removing those. – Harsha Jayamanna Nov 07 '17 at 08:56
-
No errors other than the api failed "Failed to load resource: net::ERR_EMPTY_RESPONSE" error. – RemyaJ Nov 07 '17 at 08:59
-
1It's a very strange behavior that seems to come from your environment rather than your code. Can you tell us more about your local environment ? (chrome extension / antivirus etc.) – Boulboulouboule Nov 07 '17 at 09:02
-
I am using ubuntu and I have not installed any extensions like that. – RemyaJ Nov 07 '17 at 09:10
1 Answers
0
It may be linked to this issue : Failed to load resource: net::ERR_EMPTY_RESPONSE
For him, the problem came from Avast Antivirus

Boulboulouboule
- 4,087
- 1
- 13
- 29