Code Monkey home page Code Monkey logo

Comments (1)

hontvari avatar hontvari commented on August 30, 2024

I was able to workaround the TLS issue by replacing the CA certificates within the image. I added the following lines to docker-compose-base.yml

    volumes:
      - /etc/ssl/certs/ca-certificates.crt:/usr/local/lib/python2.7/site-packages/requests/cacert.pem
      - /etc/ssl/certs/ca-certificates.crt:/usr/local/lib/python2.7/site-packages/httplib2/cacerts.txt
      - /etc/ssl/certs/ca-certificates.crt:/usr/local/lib/python2.7/site-packages/twilio/conf/cacert.pem

However, it still does not work, because Twilio discontinued the API which is used by Cabot:

web_1       | ERROR 2024-05-25 00:04:31,687 models 20 139827124976424 Error sending twilio sms: HTTP 410 error: This API is being discontinued. Please see https://support.twilio.com/hc/en-us/articles/223181028-Switching-from-SMS-Messages-resource-URI-to-Messages-resource-URI-
web_1       | Traceback (most recent call last):
web_1       |   File "/usr/local/lib/python2.7/site-packages/cabot_alert_twilio/models.py", line 79, in send_alert
web_1       |     body=message,
web_1       |   File "/usr/local/lib/python2.7/site-packages/twilio/rest/resources/sms_messages.py", line 167, in create
web_1       |     return self.create_instance(kwargs)
web_1       |   File "/usr/local/lib/python2.7/site-packages/twilio/rest/resources/base.py", line 365, in create_instance
web_1       |     data=transform_params(body))
web_1       |   File "/usr/local/lib/python2.7/site-packages/twilio/rest/resources/base.py", line 200, in request
web_1       |     resp = make_twilio_request(method, uri, auth=self.auth, **kwargs)
web_1       |   File "/usr/local/lib/python2.7/site-packages/twilio/rest/resources/base.py", line 164, in make_twilio_request
web_1       |     uri=resp.url, msg=message, code=code)
web_1       | TwilioRestException: HTTP 410 error: This API is being discontinued. Please see https://support.twilio.com/hc/en-us/articles/223181028-Switching-from-SMS-Messages-resource-URI-to-Messages-resource-URI-

from cabot.

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.