Git Product home page Git Product logo

hubot's Introduction

some useful hubot scripts that notify us of things

hubot's People

Contributors

individual-it avatar s-panta avatar phil-davis avatar roshanlc avatar

Watchers

James Cloos avatar  avatar  avatar Prarup Gurung avatar Ashish Bhattarai avatar Swoichha Adhikari avatar

hubot's Issues

[teamup-rocketchat] Provide meaningful log instead of panic details after crashing

Currently, the bot crashes showing message

TEAMUP-ROCKETCHAT-BOT 2023/01/11 09:05:30 Looking for configuration at "/var/www/rocket.chat/teamup/config.yml". Setting directory specified by configuration for log output.
TEAMUP-ROCKETCHAT-BOT 2023/01/11 09:05:30 open /tmp/teamup-rocket-chat.log: permission denied
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x529229]

goroutine 1 [running]:
log.(*Logger).Output(0x0, 0x1?, {0xc000128200, 0x33})
	/usr/local/go/src/log/log.go:179 +0x89
log.(*Logger).Fatal(0xc0001281c0?, {0xc000125f00?, 0x441?, 0x7c41f0?})
	/usr/local/go/src/log/log.go:231 +0x45
main.main()
	/tmp/hubot/teamup-rocketchat-bot/main.go:307 +0x158

TODO:

  • Replace the above crash message with it's cause
    E.g. The bot has crashed due to following error: error_message

[teamup-rocketchat] improve error reporting

This should be done in multiple PRs

  • when starting the bot with invalid configuration it just silently fails not telling the user what went wrong
  • giving wrong Rocket.Chat details just logs Unauthorized in the log file. This is not enough to debug the issue

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.