Hi,
I have a local influxDB running at localhost:XXXX to record some info from my running strategies however when the influxDB client tries to send a HTTP request it throws the following error:
20220603 05:43:42.979 ERROR:: During the algorithm initialization, the following exception has occurred: <urllib3.connection.HTTPConnection object at
0x7efaa94b89e8>: Failed to establish a new connection: [Errno 111] Connection refused
at _new_conn
self in connection.py: line 187
<urllib3.connection.HTTPConnection object at 0x7efaa94b89e8>: Failed to establish a new connection: [Errno 111] Connection refused
Is there a way to resolve this by running the container with `-p` argument or the only way to send data outside of the container is with webhooks as stated in the QC docs?
Nottakumasato
I tried implementing a Telegraf listener for self.Notify.Web() as
and tested it with `lean live STRATEGY` to get errors such as:
and also -as expected- didn't see any data ingested to InfluxDB.
Couldn't trial it in backtesting since the docs state:
To prevent sending thousands of messages each time you run a backtest, all notifications are ignored in backtesting.
Nottakumasato
And if I try to send a POST request to a localhost:PORT endpoint the below error happens:
Would be great to know how to send requests from the docker container to the localhost
Nottakumasato
Using url="https://host.docker.internal:8086" instead of localhost:8086 fixed this
Nottakumasato
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!