chrisleekr / binance-trading-bot

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis
MIT License
5.01k stars 1.09k forks source link

Slack doesn't work #38

Closed 4KJuegos closed 3 years ago

4KJuegos commented 3 years ago

I don't know if i'm doing something wrong, I've put the URL on the env, and configured slack to recieve messages from user and bot, but nothing happens. Thanks!

Maxoos commented 3 years ago

Look at the logs to spot if something is off.

docker logs binance-bot

4KJuegos commented 3 years ago

now works, but slack send me errors of certificate

chrisleekr commented 3 years ago

What kind of errors are you seeing?

chrisleekr commented 3 years ago

@4KJuegos I assume the issue is resolved as you didn't respond. Can you close the issue if it is resolved?

4KJuegos commented 3 years ago

no, is not resolved. I'm seeing this on Slack:

request to https://api.binance.com/api/v3/klines?interval=4h&symbol=TFUELUSDT&limit=5 failed, reason: Hostname/IP does not match certificate's altnames: Host: api.binance.com. is not in the cert's altnames: DNS:formrequests.com, DNS:zschoolcdnvideo.azureedge.net, DNS:e.stry.tl, DNS:zschoolcdn-static.azureedge.net, DNS:zschoolcdn-rsc.azureedge.net, DNS:www.formrequests.com, DNS:webdeskingapi.azureedge.net, DNS:videoscdo.azureedge.net, DNS:formrequests.azureedge.net, DNS:cdn.infocore.com, DNS:crl-immochan.azureedge.net, DNS:cdn.activplan.com, DNS:azwbsa1-cdn1.cfmdistributors.com, DNS:assets.askociety.com, DNS:sa354gl.wpc.edgecastcdn.net, DNS:cdn.uaccess.co.il, DNS:rsc.zschool.co.il, DNS:static.zschool.co.il, DNS:video.zschool.co.il, DNS:sa354gl.wpc.xicdn.net, DNS:sa362gl.wpc.edgecastcdn.netStack:FetchError: request to https://api.binance.com/api/v3/klines?interval=4h&symbol=TFUELUSDT&limit=5 failed, reason: Hostname/IP does not match certificate's altnames: Host: api.binance.com. is not in the cert's altnames: DNS:formrequests.com, DNS:zschoolcdnvideo.azureedge.net, DNS:e.stry.tl, DNS:zschoolcdn-static.azureedge.net, DNS:zschoolcdn-rsc.azureedge.net, DNS:www.formrequests.com, DNS:webdeskingapi.azureedge.net, DNS:videoscdo.azureedge.net, DNS:formrequests.azureedge.net, DNS:cdn.infocore.com, DNS:crl-immochan.azureedge.net, DNS:cdn.activplan.com, DNS:azwbsa1-cdn1.cfmdistributors.com, DNS:assets.askociety.com, DNS:sa354gl.wpc.edgecastcdn.net, DNS:cdn.uaccess.co.il, DNS:rsc.zschool.co.il, DNS:static.zschool.co.il, DNS:video.zschool.co.il, DNS:sa354gl.wpc.xicdn.net, DNS:sa362gl.wpc.edgecastcdn.net at ClientRequest. (/srv/node_modules/node-fetch/index.js:133:11) at ClientRequest.emit (events.js:315:20) at TLSSocket.socketErrorListener (_http_client.js:469:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:80:21)

chrisleekr commented 3 years ago

@4KJuegos hey, that is nothing to do with the bot. Your internet (possibly DNS configuration in your router) is not able to connect api.binance.com

When you access from the browser for the URL view-source:https://api.binance.com/

 <!DOCTYPE html><html><head><title>Test OK</title></head><body></body></html>

If not, check your DNS.

I close the issue as not relevant to the bot.

donley828 commented 3 years ago

@4KJuegos hey, that is nothing to do with the bot. Your internet (possibly DNS configuration in your router) is not able to connect api.binance.com

When you access from the browser for the URL view-source:https://api.binance.com/

 <!DOCTYPE html><html><head><title>Test OK</title></head><body></body></html>

If not, check your DNS.

I close the issue as not relevant to the bot.

i visit view-source:https://api.binance.com/ is ok.but that error is still occured.