Relative Content

Tag Archive for restwebsocket

Program getting randomly stuck during REST API calls in python

I have python code which makes REST API calls and also connects to a websocket.
Every now and then the code gets stuck for many minutes and when I trigger any event on the terminal window (like maximize it or restore its size), then the code suddenly wakes up and starts executing further.
It’s the same code which runs every day and its the same loop which is run every minute. Most of the time it runs fine and gets stuck only on some days.