Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to deploy plugin to flex [BUG] #785

Closed
agssiva1981 opened this issue Jan 17, 2023 · 12 comments
Closed

Not able to deploy plugin to flex [BUG] #785

agssiva1981 opened this issue Jan 17, 2023 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@agssiva1981
Copy link

Description

When deploy to flex, encountered below error
0 pending HTTP requests - max concurrent requests allowed is 5
Making a GET to https://flex-api.twilio.com/v1/Configuration
Request errored with message connect ETIMEDOUT 52.20.104.111:443
[DEBUG] Found command "flex:plugins:deploy" plugin: @twilio-labs/plugin-flex
» 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/flex-plugin-builder/issues"
[DEBUG] connect ETIMEDOUT 52.20.104.111:443
[DEBUG] Error: connect ETIMEDOUT 52.20.104.111:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)

Versions

You can find the version of your @twilio/plugin-flex by typing twilio plugins.

package version
@twilio/plugin-flex 6.0.4
flex-plugin-scripts 6.0.4
node 16.19.0
npm 8.19.3

Package.json

{
"name": "plugin-callback",
"version": "1.0.0",
"private": true,
"scripts": {
"postinstall": "flex-plugin pre-script-check"
},
"devDependencies": {
"@twilio/flex-ui": "^1",
"react-test-renderer": "16.5.2"
},
"dependencies": {
"react": "16.5.2",
"react-dom": "16.5.2",
"twilio-video": "^2.18.1",
"@twilio/flex-plugin-scripts": "6.0.4"
}
}

Steps to Reproduce

Please provide the steps to reproduce this bug:

  1. twilio flex:plugins:deploy --major --changelog "callback plugin" --description "callback plugin"

Expected Behavior

Plugin should be deployed to flex

Screenshots

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

@agssiva1981 agssiva1981 added the bug Something isn't working label Jan 17, 2023
@aishwarya-tw
Copy link
Contributor

aishwarya-tw commented Oct 4, 2023

Hi @agssiva1981 . Are you still experiencing this issue? Looks like you are unable to connect to Twilio REST APIs. Please check that your proxy is allowing traffic to Twilio APIs if you have one setup

@ypatel118
Copy link

@aishwarya-tw I'm facing same issue. Do not have any proxy in my computer settings.

@aishwarya-tw
Copy link
Contributor

@ypatel118 Is it ETIMEDOUT or ECONNREFUSED error that you're seeing? Please share more details.

@ypatel118
Copy link

@aishwarya-tw Before I was getting the exact same error as mentioned in issue description - ETIMEDOUT.

But right now it's something else -

[DEBUG] -- BEGIN Twilio API Request --
[DEBUG] get https://flex-api.twilio.com/v1/Configuration
[DEBUG] Custom HTTP Headers:
[DEBUG] User-Agent: twilio-cli/5.5.0 @twilio/cli-core/7.10.2 (win32 x64) twilio-node/4.8.0 node/v16.19.1 flex:plugins:deploy
[DEBUG] -- END Twilio API Request --
 » twilio-cli encountered a network connectivity error. Please check your network connection and try your command again. Check on Twilio service status at https://status.twilio.com/
[DEBUG] TwilioCliError: twilio-cli encountered a network connectivity error. Please check your network connection and try your command again. Check on Twilio service status at https://status.twilio.com/
    at CliRequestClient.request (C:\Users\ypwork\.twilio-cli\node_modules\@twilio-labs\plugin-flex\node_modules\@twilio\cli-core\src\services\cli-http-client.js:121:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async FlexConfigurationClient.fetch (C:\Users\ypwork\.twilio-cli\node_modules\@twilio-labs\plugin-flex\dist\clients\FlexConfigurationClient.js:25:24)
    at async FlexConfigurationClient.getServerlessSid (C:\Users\ypwork\.twilio-cli\node_modules\@twilio-labs\plugin-flex\dist\clients\FlexConfigurationClient.js:35:24)
    at async FlexPluginsDeploy.checkForLegacy (C:\Users\ypwork\.twilio-cli\node_modules\@twilio-labs\plugin-flex\dist\commands\flex\plugins\deploy.js:199:28)
    at async FlexPluginsDeploy.doRun (C:\Users\ypwork\.twilio-cli\node_modules\@twilio-labs\plugin-flex\dist\commands\flex\plugins\deploy.js:72:9)
    at async FlexPluginsDeploy.run (C:\Users\ypwork\.twilio-cli\node_modules\@twilio-labs\plugin-flex\dist\sub-commands\flex-plugin.js:302:24)
    at async FlexPluginsDeploy._run (C:\Users\ypwork\.twilio-cli\node_modules\@oclif\core\lib\command.js:80:22)
    at async Config.runCommand (C:\Users\ypwork\AppData\Roaming\nvm\v16.19.1\node_modules\twilio-cli\node_modules\@oclif\core\lib\config\config.js:301:25)

Also, I'm not sure if it's relevant or not but I am currently not able to access - https://status.twilio.com/ - I was able to access it few hours ago.
Currently in browser it says -

403 ERROR
The request could not be satisfied.
Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

@ypatel118
Copy link

@aishwarya-tw Got this today for a different twilio account

0 pending HTTP requests - max concurrent requests allowed is 5
Making a GET to https://serverless.twilio.com/v1/Services/ZSac570982d781d23bc030ee77b069b49f/Builds/ZB7266a8987efb79048fea43047a8f5d54
Request errored with message connect ETIMEDOUT 54.82.187.192:443
[DEBUG] Found command "flex:plugins:deploy" plugin: @twilio-labs/plugin-flex
 » 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/flex-plugin-builder/issues"
[DEBUG] connect ETIMEDOUT 54.82.187.192:443
[DEBUG] Error: connect ETIMEDOUT 54.82.187.192:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)

@aishwarya-tw
Copy link
Contributor

@ypatel118 Thanks for the details. This does not seem to be an issue with flex-plugin-builder but instead with your machine's network settings. I believe the requests to Twilio public APIs are getting blocked on your machine for some reason. I would suggest you to look at your network firewall settings or VPN settings (if you're using).

@agssiva1981
Copy link
Author

agssiva1981 commented Feb 5, 2024 via email

@aishwarya-tw
Copy link
Contributor

@agssiva1981 Please feel free to close the issue if it is not relevant to you anymore. Thanks

@ypatel118 ypatel118 mentioned this issue Feb 5, 2024
@ypatel118
Copy link

@aishwarya-tw Still facing this issue.

Different things I tried to resolve -

  • Turn off windows firewall
  • Change account to which I am deploying
  • Change plugin to deploy
  • Reset network settings/adapters
  • Restart wifi router

Nothing seems to work.

My node is v16 so as mentioned in other thread it doesn't apply to me.

Any suggestions or should I reinstall twilio cli?

@aishwarya-tw
Copy link
Contributor

@ypatel118 This seems unique to your machine so unable to identify the root cause of the problem. Please try to install the latest Twilio CLI and Plugin CLI. Update the plugin to use the same Plugin CLI version and try again

@ypatel118
Copy link

@aishwarya-tw Issue resolved with a new network provider. Maybe something to do with JioFiber in India.

@aishwarya-tw
Copy link
Contributor

That great to hear @ypatel118. Thanks for confirming! Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants