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

[BUG] #784

Closed
rajrishi7817 opened this issue Jan 11, 2023 · 7 comments
Closed

[BUG] #784

rajrishi7817 opened this issue Jan 11, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@rajrishi7817
Copy link

Description

[DEBUG] Config File: /root/.twilio-cli/config.json
[DEBUG] Using profile: ${TWILIO_ACCOUNT_SID}/${TWILIO_AUTH_TOKEN}
[DEBUG] Using Plugins CLI version 6.0.4
[DEBUG] Using Flex Plugins Config File: /root/.twilio-cli/flex/plugins.json
[DEBUG] Using @twilio/flex-plugin-scripts version 6.0.3
Using profile ${TWILIOACCOUNTSID}/${TWILIOAUTHTOKEN} (ACXXXXXX)

[DEBUG] -- BEGIN Twilio API Request --
[DEBUG] GET https://flex-api.twilio.com/v1/Configuration
[DEBUG] Custom HTTP Headers:
[DEBUG] User-Agent: twilio-cli/5.2.3 @twilio/cli-core/7.4.1 (linux x64) twilio-node/3.82.0 node/v16.18.1 flex:plugins:deploy
[DEBUG] -- END Twilio API Request --
[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 ECONNREFUSED 54.145.6.147:443
[DEBUG] Error: connect ECONNREFUSED 54.145.6.147:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)

Versions

@twilio-labs/plugin-flex 6.0.4
@twilio-labs/plugin-serverless 3.1.2
twilio-cli/5.2.3
node -> v17.1.0

Package.json

{
"name": "flex2-plugin-sample",
"version": "0.0.0",
"private": true,
"scripts": {
"postinstall": "flex-plugin pre-script-check"
},
"dependencies": {
"@twilio/flex-plugin-scripts": "6.0.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"prop-types": "^15.7.2",
"@twilio-paste/core": "^10.14.0",
"@twilio-paste/icons": "^5.7.0"
},
"devDependencies": {
"@twilio/flex-ui": "2.0.2",
"react-test-renderer": "17.0.2"
}
}

Steps to Reproduce

  1. twilio flex:plugins:deploy --major --changelog "Testing Deployment" --description "Test Plugin v1" -l debug

Expected Behavior

Expected to deploy the plugin to my Flex project.

Additional Context

I see the issue happening at different stages of the deployment. At times I see the error right away and sometimes little later in the deployment process.

Kindly assist.

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

Hi @rajrishi7817. 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

aishwarya-tw commented Feb 1, 2024

@rajrishi7817 @ypatel118 This issue exists Node 17 and 18 as outlined here.

Please use Flex Plugin CLI v6.1.2 which is compatible with node 18 and set environment variable NODE_OPTIONS as specified below before running the start/build/deploy command:

export NODE_OPTIONS=--dns-result-order=ipv4first

twilio flex:plugins:deploy --major --changelog "Testing Deployment" --description "Test Plugin v1" -l debug

@ypatel118
Copy link

@aishwarya-tw I'm using Flex Plugins CLI version 6.2.3 and the version used by plugin is "@twilio/flex-plugin-scripts": "6.1.2". And my node version is v16.19.

@aishwarya-tw
Copy link
Contributor

@ypatel118 As mentioned on the other thread, the issue that you're facing is more likely to be related to your machine's network settings. The one mentioned in this issue is a problem with Node 17 & 18 for which the above solution of setting the NODE_OPTIONS should work

@ypatel118
Copy link

@aishwarya-tw Ok let's discuss on the other thread - 785

@hsingla005
Copy link
Contributor

Closing the issue as the fix was released in the v6.3.1.

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

6 participants