Git Product home page Git Product logo

badstatusline's Introduction

BadStatusLine

Possible bug

I thought of creating this project to try to show case a small issue that caused our system to misbehave.

Our system heavily relies on Africa's Talking. Any mistake means we are not in business.

Disclaimer

I still consider myself an amateur developer. Kindly forgive my lack of knowledge if what am reporting is wrong, not accurate or irrelevant.

To reproduce what am saying.

Clone this repo BADSTATUSLINE and cd to it's directory.


It's packaged with docker because I think docker is awesome.


How to set up

Step 1

docker-compose up

Step 2

In a new terminal -

docker-compose logs -f worker

Step 3

In your browser open this localhost

username:password => guest:guest

In the email I have attached an excel file with around 5000 contacts.

upload it. What it will do is read all the contacts in that excel file and initiate sending of SMS to Africa's Talking

In the terminal listening on worker logs check the logs. The exception is been raised randomly. So be patient and wait for it to be raised.

You will see the exception am talking about.

Partly we failed to catch this because it does not show up while sending single SMSes. But sending bulk at once it showed up.

To understand why i think it might affect other people who fail to realise it early. In the lib.AfricasTalkingGateway.py file. Uncomment the send_message function and comment the send_message function which we have handled the exception.

You will notice if the BadStatusLine is raised. The active thread will fail causing messages not to be sent which is something to worry about.

I think we missed to catch it because your doc's in some place mentions that all gateway exceptions will be handled. Which I think is not true.

Here are some links for people who bumped into the same issue.

badstatusline's People

Contributors

eliaskioni avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gitigi

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.