Giter VIP home page Giter VIP logo

Comments (5)

diegogarciar avatar diegogarciar commented on July 29, 2024

Hey @zamarwells
replace that function with

if (typeof (context.auth) === 'undefined') {
      throw new functions.https.HttpsError('unauthenticated', 'The function must be called '
        + 'while authenticated');
    }
 let userId = context.auth.uid;

from twilio_voice.

diegogarciar avatar diegogarciar commented on July 29, 2024

You must have your user authenticated in the app via firebase auth for it to work.

from twilio_voice.

zamarwells avatar zamarwells commented on July 29, 2024

Thanks @diegogarciar , I really appreciate the quick response, I've updated my Firebase Functions and its been deployed, access token are being generated and received in my Flutter app, but i now have two new errors, one was previously mentioned in an "open Issue", i don't really know if i should keep communicating with you here or open new issues for the errors i have, none the less, here are my errors below, I'd really appreciate some more help.... Thanks

first error
I/TwilioVoicePlugin( 5105): Registering with FCM
E/TwilioVoicePlugin( 5105): Registration Error: 31400, Bad Request

second error
D/TwilioVoicePlugin( 5105): Connect failure
E/TwilioVoicePlugin( 5105): Call Error: 31404, Not Found
I/flutter ( 5105): Call Error: 31404, Not Found

There's an open issue for the second error already but no solution there

from twilio_voice.

zamarwells avatar zamarwells commented on July 29, 2024

I've been able to solve this issue, the error was not coming from the twilio_voice package, for those that are still facing this issue. The problem occurs when u fail to configure a url for your Twiml app, do so with this command below

twilio api:core:applications:create --friendly-name=my-twiml-app --voice-method=POST --voice-url="https://my-quickstart-dev.twil.io/make-call"

from twilio_voice.

diegogarciar avatar diegogarciar commented on July 29, 2024

Nice catch, yes that was my guess too but I couldn’t replicate the issue.

from twilio_voice.

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.