GithubHelp home page GithubHelp logo

jprix / mms2flexchat Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 24.0 2.18 MB

Allows customer to send in MMS media and render within Flex Chat window

License: Apache License 2.0

JavaScript 97.53% CSS 2.47%

mms2flexchat's People

Contributors

bdm1981 avatar jprix avatar trogers-twilio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mms2flexchat's Issues

Time out error when using mmsHandler function

Hello, think this is a great work around for being able to use media messages in a whatsapp/studio/flex setup.

Im having a timeout error when the functions runs for the actual message which contains the media. It runs smoothly, get the media URI and Content Type correctly but I get a time out error.

In the debugger console the error it shows is:

Error - 82002
Error on Twilio Function response
Your Function invocation resulted in StatusCode 5xx.

Possible Causes

  • Your Function timed out before responding
  • Your Function returned an error response
    Possible Solutions
    -Your Function must contain a callback.
    -Make sure you place the Function callback callback(err, response) is placed correctly in your
    Function code.
    -If you are using a JavaScript promise, make sure the callback is called in both success and catch blocks.

Your Function responded with an error.

The callbacks are called ok bothin the success and catch blocks so I dont understand why is it timing out.

Any help would really be appreciated

Thanks

Edit:
By Adding a callback call en the catch block the error was fixed. Still, when I make a get request of the message that should have been modified with the extra information regarding the medida url and media content, this information simply is not there. When i do a manual post to modify the message with postman, it modifies correctly.

Do anyone can think of a work around so that the message si modified with the twilio function mmsHandler?

Thank you very much!

License of the project

Hi, I really like what you wrote ;-) . I've searched on the repo but I haven't found a reference to the license file. Could you specify?

Unable to get this working on twilio flex

Hello. Thanks for creating this repo. I'm trying to deploy this to our flex project but I am unable to get it working and I'm unsure if I'm deploying the plugin correctly.

Things I've tried are:

  1. git clone the repo, go to the flex_plugin folder and run npm install and try to deploy using twilio flex:plugins:deploy
  • result: directory is not a flex plugin directory
  1. create a twilio plugin using twilio flex:plugins:create, copy the contents of src and depoy using twilio:flex:plugins:deploy
  • result: see changes on the flex agent desktop but im still unable to see incoming media and the outgoing media is not getting sent either. please see screenshot https://snipboard.io/cQxp2S.jpg
  1. same as #2 and I also tried to update package.json, and used the ones included in the repo,
  • result: webpack is not compatible with the other modules and the plugin did not get deployed.

The functions are in place and the proxy callback is also set to the mmshandler. Please advise what I could do to make it work? The README says to follow the guide to deploy and on flex docs the steps to create and deploy are just as follows:

twilio flex:plugins:create plugin-name
cd plugin-name
npm install
twilio flex:plugins:start
twilio flex:plugins:deploy

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.