Python Plugion for Rapid7 Insight Logger - Unable to connect to R7Insight

I’d been using this plugin library(r7insight_python) to enable logging to Rapid7 Insight from the Python Logger. Recently I found that my services has stopped emitting logs from almost a month now. When I dive deeper into this then I found that I cannot even run a example file to log message using r7insight_python (https://github.com/rapid7/r7insight_python) .

Here is the message from the example file (https://github.com/rapid7/r7insight_python#usage)

Log Messages:
LE: Starting Rapid7 Insight Asynchronous Socket Appender
LE: Unable to connect to R7Insight
LE: Unable to connect to R7Insight
LE: Unable to connect to R7Insight
LE: Unable to connect to R7Insight
[Finished in 22.1s]