[Solved] Once in a while, axios http long polling not returning at all
The problem was caused by occasional network issues. I solved it by Adding a timeout to axios calls; for example: axios.get(url, {timeout: 18000}) for 18 seconds timeout. This is the main solution. Keeping a timestamp of when the last http request was started and check it regularly with setInterval(). If it was not tolerable, I … Read more