OriginProtocol / origin-bridge

We've moved to a monorepo: https://github.com/OriginProtocol/origin/tree/master/infra/bridge
MIT License
15 stars 7 forks source link

Exception handling for Twilio and Sendgrid API calls #42

Closed ambertch closed 6 years ago

ambertch commented 6 years ago

Currently, exceptions from Twilio and Sendgrid are not caught.

<html>
    <head>
        <title>twilio.base.exceptions.TwilioRestException: 
HTTP Error Your request was:

POST /Accounts/AC6d4e17550964da911b9278a6ba699a88/Messages.json

Twilio returned the following information:

Unable to create record: The 'To' number absdsssjkddskjf is not a valid phone number.

More information may be available here:

https://www.twilio.com/docs/errors/21211 // Werkzeug Debugger</title>
ambertch commented 6 years ago

taken care of by https://github.com/OriginProtocol/bridge-server/pull/48