Comments (5)
Thanks for the issue @reverie!
We could take a closer look at the issue with some logs. If you run npm run deploy:twilio-cli -- -l debug
, what does it print to the console? This may help us figure out which specific http request is getting the 409.
from twilio-video-app-react.
@timmydoza Not getting the 409 anymore, but here's the debug output:
andrew@hazel ~/tmp/twilio-video-app-react
: npm run deploy:twilio-cli -- -l debug
> [email protected] deploy:twilio-cli /Users/andrew/tmp/twilio-video-app-react
> cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build "-l" "debug"
> [email protected] build /Users/andrew/tmp/twilio-video-app-react
> react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
262.17 KB build/static/js/2.4dd8aa1f.chunk.js
11.82 KB build/static/js/main.62cb6256.chunk.js
784 B build/static/js/runtime-main.fa60846a.js
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
[DEBUG] Config File: /Users/andrew/.twilio-cli/config.json
[DEBUG] Using profile: mixily
[DEBUG] -- BEGIN Twilio API Request --
[DEBUG] GET https://serverless.twilio.com/v1/Services
[DEBUG] User-Agent: @twilio/cli-core/4.6.0 (twilio-node/3.42.0, node.js v12.14.0, darwin 19.3.0 x64, rtc:apps:video:deploy)
[DEBUG] -- END Twilio API Request --
[DEBUG] response.statusCode: 200
[DEBUG] response.headers: {"date":"Fri, 03 Apr 2020 21:11:43 GMT","content-type":"application/json; charset=utf-8; charset=utf-8","content-length":"1067","connection":"close","twilio-concurrent-requests":"1","twilio-request-id":"RQ9080e36bad174821aee75d708d1e5c20","twilio-request-duration":"0.052","access-control-allow-origin":"*","access-control-allow-headers":"Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since","access-control-allow-methods":"GET, POST, DELETE, OPTIONS","access-control-expose-headers":"ETag","access-control-allow-credentials":"true","x-powered-by":"AT-5000","x-shenanigans":"none","x-home-region":"us1","x-api-domain":"serverless.twilio.com","strict-transport-security":"max-age=31536000"}
[DEBUG] -- BEGIN Twilio API Request --
[DEBUG] GET https://serverless.twilio.com/v1/Services/ZS1160f95f212d8f135bdc082519cee697/Environments
[DEBUG] User-Agent: @twilio/cli-core/4.6.0 (twilio-node/3.42.0, node.js v12.14.0, darwin 19.3.0 x64, rtc:apps:video:deploy)
[DEBUG] -- END Twilio API Request --
[DEBUG] response.statusCode: 200
[DEBUG] response.headers: {"date":"Fri, 03 Apr 2020 21:11:43 GMT","content-type":"application/json; charset=utf-8; charset=utf-8","content-length":"380","connection":"close","twilio-concurrent-requests":"1","twilio-request-id":"RQ4d913d81e86e4afa99596e7524ea465e","twilio-request-duration":"0.029","access-control-allow-origin":"*","access-control-allow-headers":"Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since","access-control-allow-methods":"GET, POST, DELETE, OPTIONS","access-control-expose-headers":"ETag","access-control-allow-credentials":"true","x-powered-by":"AT-5000","x-shenanigans":"none","x-home-region":"us1","x-api-domain":"serverless.twilio.com","strict-transport-security":"max-age=31536000"}
ยป twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: https://github.com/twilio/twilio-cli/issues
[DEBUG] Cannot read property 'sid' of undefined
[DEBUG] TypeError: Cannot read property 'sid' of undefined
at DeployCommand.getAppInfo (/Users/andrew/.twilio-cli/node_modules/@twilio-labs/plugin-rtc/src/helpers.js:76:64)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async DeployCommand.run (/Users/andrew/.twilio-cli/node_modules/@twilio-labs/plugin-rtc/src/commands/rtc/apps/video/deploy.js:18:20)
at async DeployCommand._run (/Users/andrew/.twilio-cli/node_modules/@oclif/command/lib/command.js:44:20)
at async Config.runCommand (/usr/local/lib/node_modules/twilio-cli/node_modules/@oclif/config/lib/config.js:160:9)
at async Main.run (/usr/local/lib/node_modules/twilio-cli/node_modules/@oclif/command/lib/main.js:21:9)
at async Main._run (/usr/local/lib/node_modules/twilio-cli/node_modules/@oclif/command/lib/command.js:44:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy:twilio-cli: `cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build "-l" "debug"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy:twilio-cli 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/andrew/.npm/_logs/2020-04-03T21_11_43_524Z-debug.log
from twilio-video-app-react.
Thanks for the logs @reverie!
We found that sometimes the CLI plugin can get into a weird state - so we released a new version of the plugin that should help with this.
Can you please try the steps outlines in the Troubleshooting the Twilio CLI section of the readme and let me know if it solves your issue?
from twilio-video-app-react.
@timmydoza That worked, thanks! Got my test app deployed.
from twilio-video-app-react.
Glad it worked! Please let me know if you see any further issues. Thanks!
from twilio-video-app-react.
Related Issues (20)
- twilio-video upgrade HOT 1
- Second participant audio is not playing on first participant screen HOT 2
- WhiteBoard Feature HOT 2
- waiting room HOT 1
- document and present Capability HOT 1
- token generation failed overall but also succeeded intermittently. HOT 1
- Screen sharing audio capabilities and the ability to see your own shared content. HOT 1
- Error when attempting to build local server HOT 1
- The request body is undefined unless we add bodyParser or express.json
- Camera light remains open once user disconnects from the room HOT 6
- Using WebAudio - AudioWorkletProcessors to process Audio Data
- Transcribing calls
- Upgrade security of the app with a token from our server. Passcode gets in the way when the app is deployed. HOT 1
- what is the use of web sockets
- Passcode starting with number '0' causes a bad passcode error.
- A thumbs up appears in the middle of the screen... HOT 1
- Mac OS Safari Screen Sharing performance degrades during recording
- Refactoring of code smells
- can anyone tell me what is the issue in me code
- Download the attachement added in the chat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilio-video-app-react.