Giter Site home page Giter Site logo

Comments (5)

sushovan23 avatar sushovan23 commented on June 2, 2024

version details:
alerta (5.0.12)
alerta-server (5.0.5)

from python-alerta-client.

satterly avatar satterly commented on June 2, 2024

@sushovan23 wrote...

here are test results from heartbeat. I think you can reproduce when you have two heartbeats in the db. with one it works. I have two heartbeats and while sending alerts. i get first alert but second one fails
alerta (5.0.12)
alerta-server (5.0.9)

[root@XXXXX ~]# alerta heartbeats --alert
+---------------------+------------+---------+----------+-----------+--------------------+---------------------+--------------------------------------+-----------+---------------------+
| ORIGIN              | CUSTOMER   | SINCE   | STATUS   | TIMEOUT   | TAGS               | RECEIVED            | ID                                   | LATENCY   | CREATED             |
|---------------------+------------+---------+----------+-----------+--------------------+---------------------+--------------------------------------+-----------+---------------------|
| sync_script_test.py |            | 0:08:03 | expired  | 30s       | notify_email=false | 2018/04/03 12:40:17 | 8ec77cef-b012-4c15-8a43-23467fb81537 | 0ms       | 2018/04/03 12:40:17 |
| sync_script.py      |            | 0:07:16 | expired  | 30s       | notify_email=false | 2018/04/03 12:41:03 | 6b35bb58-9825-4c64-9a99-51fb00c775ab | 0ms       | 2018/04/03 12:41:03 |
+---------------------+------------+---------+----------+-----------+--------------------+---------------------+--------------------------------------+-----------+---------------------+
Alerting 2 heartbeats  [##################------------------]   50%
Traceback (most recent call last):
  File "/bin/alerta", line 11, in <module>
    sys.exit(cli())
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/alertaclient/commands/cmd_heartbeats.py", line 57, in cli
    type='heartbeatAlert'
  File "/usr/lib/python2.7/site-packages/alertaclient/api.py", line 69, in send_alert
    alert = Alert.parse(r['alert']) if 'alert' in r else None
  File "/usr/lib/python2.7/site-packages/alertaclient/models/alert.py", line 64, in parse
    raise ValueError('timeout must be an integer')
ValueError: timeout must be an integer

this should help you track down the bug

from python-alerta-client.

satterly avatar satterly commented on June 2, 2024

I've tried to reproduce this and can't -- it works fine for me. Can you run this command again and add --debug so it generates debug output? Thanks.

from python-alerta-client.

sushovan23 avatar sushovan23 commented on June 2, 2024

I rebuild my environment from scratch & it is working perfectly now. Not sure what was causing the failure. You can close this incident. Thanks for the support.

from python-alerta-client.

satterly avatar satterly commented on June 2, 2024

That's great. Thanks for letting me know.

from python-alerta-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.