Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP request timeout and content download time


I'm having a weird issue about HTTP requests...
The request is marked as "Pending" under the network and eventually a timeout happens. The timing tab shows this

First request

The weird thing about this is that if I execute the exact, same HTTP request a second time it gets processed in 500ms and I correctly get the requested data.

Second request

Does someone know how this can happen and how can this be fixed? Thank you!!

like image 454
Luca De Nardi Avatar asked Jun 21 '26 04:06

Luca De Nardi


1 Answers

For those who are still looking for this, it happened that due to a coding error AngularJS started to trigger a huge amount of digests that blocked the client to get the HTTP response.

like image 166
Luca De Nardi Avatar answered Jun 22 '26 16:06

Luca De Nardi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!