Crypto-Signal icon indicating copy to clipboard operation
Crypto-Signal copied to clipboard

Problem using Integram Notifier

Open Veyozei opened this issue 8 years ago • 7 comments

Successfully added Integram Notifier to Telegram Channel using @integram_bot using command NOTIFIERS_INTEGRAM_REQUIRED_URL=

Although as soon as I launch I get a few pairs sent to the channel telling the pairs wether its hot or cold from all the indicators but it only sends out a few then the bot crashes. Gives me the following error code:

My guess is maybe the program sends out too many messages and gets blocked for anti-spam, which causes the program to think that something is wrong, gives you an error like "Too many requests" .. This is just a speculation, I am not a programmer, just a thought...

Good luck !

Traceback (most recent call last): File "app.py", line 46, in main() File "app.py", line 41, in main behaviour.run(settings['market_pairs'], settings['output_mode']) File "/app/behaviour.py", line 56, in run self.test_strategies(market_data, output_mode) File "/app/behaviour.py", line 144, in test_strategies self.notifier.notify_all(message) File "/app/notification.py", line 81, in notify_all self.notify_integram(message) File "/app/notification.py", line 124, in notify_integram self.integram_client.notify(message) File "/app/notifiers/integram_client.py", line 38, in notify urllib.request.urlopen(req, jsondataasbytes) File "/usr/local/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error return self._call_chain(args) File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(args) File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 429: Too Many Requests

Veyozei avatar Mar 05 '18 15:03 Veyozei

I have the same issue.

kelvinrrivera avatar Mar 05 '18 20:03 kelvinrrivera

We'll try to fix this as soon as we can

ghost avatar Mar 06 '18 11:03 ghost

ich, I just looked at our telegram code. I am probably going to do some significant refactoring to hopefully make it better all round. Might just take me a couple of days to work the magic on it.

ghost avatar Mar 07 '18 03:03 ghost

Fixed in https://github.com/CryptoSignal/crypto-signal/pull/205/ waiting for review, this is a significant change to the telegram integration and completely changes how it works. Existing users will need to update their config.

ghost avatar Mar 07 '18 12:03 ghost

So I tried updated the application, seemed to work fine, I havn't changed anything in the folder from the previous version, leaving my old settings.env file in there with my old setup using Binance exchange and Integram Notifier. Still get the same error message so what am I doing wrong ?

EDIT: MY bad, I wasn't reading carefully lol

Veyozei avatar Mar 07 '18 17:03 Veyozei

The change hasn't been merged yet. It's in review.

ghost avatar Mar 07 '18 19:03 ghost

Merged, build should publish in the next hour.

ghost avatar Mar 07 '18 22:03 ghost