Git Product home page Git Product logo

twilio-phone-client's Introduction

My notes

These are my notes on various tech topics. Feel free to use whatever you find here, I hope some of it is useful.

twilio-phone-client's People

Stargazers

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

Watchers

 avatar

twilio-phone-client's Issues

blank index page

After successfully deploying it gave me a blank index page.
Any idea what could be the issue?
thank you

final deployment gives Authentication Error

on running npm run deploy after all other steps are completed for installation:

$ twilio-phone-client-main % npm run deploy

[email protected] deploy /Users/noaman_sarguroh/Desktop/twilio-phone-client-main
react-scripts build && rm -rf deploy/assets/ && mkdir deploy/assets/ && cp -r build/* deploy/assets/ && cd deploy && TWILIO_SERVERLESS_API_CONCURRENCY=1 twilio serverless:deploy

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

252.45 KB build/static/js/2.834e44f4.chunk.js
18.13 KB build/static/js/main.00cfe3ac.chunk.js
779 B build/static/js/runtime-main.a44a3e6c.js
398 B build/static/css/main.6fd2da93.chunk.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

npm install -g serve
serve -s build

Find out more about deployment here:

bit.ly/CRA-deploy

Deploying functions & assets to the Twilio Runtime

Account AC*****************************
Token IkCG****************************
Service Name twilio-phone-client
Environment dev
Root Directory /Users/noaman_sarguroh/Desktop/twilio-phone-client-main/deploy
Dependencies twilio
Env Variables API_KEY, API_SECRET, CHAT_SERVICE_SID, TWILIO_NUMBER, TWIML_APP_SID, SECRET, TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN
Runtime undefined

✖ Failed Deployment

│ ERROR Failed API Request 20003

│ Authenticate

│ More info: https://www.twilio.com/docs/errors/20003

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: react-scripts build && rm -rf deploy/assets/ && mkdir deploy/assets/ && cp -r build/* deploy/assets/ && cd deploy && TWILIO_SERVERLESS_API_CONCURRENCY=1 twilio serverless:deploy
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/noaman_sarguroh/.npm/_logs/2021-05-07T08_51_29_636Z-debug.log

The full logs is as follows:
/Users/noaman_sarguroh/.npm/_logs/2021-05-07T08_51_29_636Z-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'deploy' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ]
5 info lifecycle [email protected]predeploy: [email protected]
6 info lifecycle [email protected]
deploy: [email protected]
7 verbose lifecycle [email protected]deploy: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
deploy: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/noaman_sarguroh/Desktop/twilio-phone-client-main/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
9 verbose lifecycle [email protected]deploy: CWD: /Users/noaman_sarguroh/Desktop/twilio-phone-client-main
10 silly lifecycle [email protected]
deploy: Args: [
10 silly lifecycle '-c',
10 silly lifecycle 'react-scripts build && rm -rf deploy/assets/ && mkdir deploy/assets/ && cp -r build/* deploy/assets/ && cd deploy && TWILIO_SERVERLESS_API_CONCURRENCY=1 twilio serverless:deploy'
10 silly lifecycle ]
11 silly lifecycle [email protected]deploy: Returned: code: 1 signal: null
12 info lifecycle [email protected]
deploy: Failed to exec deploy script
13 verbose stack Error: [email protected] deploy: react-scripts build && rm -rf deploy/assets/ && mkdir deploy/assets/ && cp -r build/* deploy/assets/ && cd deploy && TWILIO_SERVERLESS_API_CONCURRENCY=1 twilio serverless:deploy
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1048:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/noaman_sarguroh/Desktop/twilio-phone-client-main
16 verbose Darwin 19.5.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "deploy"
18 verbose node v14.16.1
19 verbose npm v6.14.12
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] deploy: react-scripts build && rm -rf deploy/assets/ && mkdir deploy/assets/ && cp -r build/* deploy/assets/ && cd deploy && TWILIO_SERVERLESS_API_CONCURRENCY=1 twilio serverless:deploy
22 error Exit status 1
23 error Failed at the [email protected] deploy script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

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.