These are my notes on various tech topics. Feel free to use whatever you find here, I hope some of it is useful.
jandusek / twilio-phone-client Goto Github PK
View Code? Open in Web Editor NEWSMS & call web client for Twilio phone numbers
SMS & call web client for Twilio phone numbers
After successfully deploying it gave me a blank index page.
Any idea what could be the issue?
thank you
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]deploy: [email protected]
6 info lifecycle [email protected]
7 verbose lifecycle [email protected]deploy: unsafe-perm in lifecycle truedeploy: 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
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]deploy: CWD: /Users/noaman_sarguroh/Desktop/twilio-phone-client-maindeploy: Args: [
10 silly lifecycle [email protected]
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: nulldeploy: Failed to exec deploy script
12 info lifecycle [email protected]
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 ]
Hello everyone, I followed the installation process line by line. After the last deploy, i went to this link right: https://twilio-phone-client-xxxx-dev.twil.io/index.html ? Do I have to do anything else?
I run npm deploy. then go to the above link, it says 'Not Found' with white background. Please help. Thank you!
Does this support MMS? If I send a MMS message to client, it comes as blank
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.