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] Can't create Plugin when running behind corp proxy #1080

Closed
phinzin opened this issue Feb 4, 2025 · 3 comments
Closed

[BUG] Can't create Plugin when running behind corp proxy #1080

phinzin opened this issue Feb 4, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@phinzin
Copy link

phinzin commented Feb 4, 2025

Description

Can't create Plugin when running behind corp proxy
Added log level debug but not much information in the console output

Versions

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

package version
@twilio/plugin-flex 7.1.0
flex-plugin-scripts NA
node v18.20.6
npm 10.8.2

Package.json

Please include the entire content of your package.json.

{
  "name": "twilio-cli",
  "version": "5.22.10",
  "description": "Unleash the power of Twilio from your command prompt. Visit https://twil.io/cli for don.",
  "keywords": [
    "oclif"
  ],
  "homepage": "https://github.com/twilio/twilio-cli",
  "bugs": "https://github.com/twilio/twilio-cli/issues",
  "repository": {
    "type": "git",
    "url": "https://github.com/twilio/twilio-cli.git"
  },
  "license": "MIT",
  "author": "Twilio @twilio",
  "main": "src/index.js",
  "bin": {
    "twilio": "bin/run"
  },
  "files": [
    "/bin",
    "/npm-shrinkwrap.json",
    "/oclif.manifest.json",
    "/src",
    "/welcome.js"
  ],
  "scripts": {
    "postinstall": "node welcome.js",
    "lint": "eslint --ext js --ext jsx src/ test/",
    "lint:fix": "npm run lint -- --fix",
    "prepack": "oclif manifest && oclif readme && npm shrinkwrap && git checkout -- package-lock.json",
    "postpack": "rm -f oclif.manifest.json npm-shrinkwrap.json",
    "test": "nyc mocha --forbid-only \"test/**/*.test.js\"",
    "posttest": "npm run lint",
    "version": "oclif readme && git add README.md"
  },
  "dependencies": {
    "@oclif/core": "^1.16.0",
    "@oclif/plugin-autocomplete": "^1.3.0",
    "@oclif/plugin-plugins": "^2.1.0",
    "@oclif/plugin-update": "^2.1.3",
    "@oclif/plugin-version": "^1.1.1",
    "@oclif/plugin-warn-if-update-available": "^3.0.18",
    "@sendgrid/mail": "^8.1.4",
    "@twilio/cli-core": "^7.26.5",
    "chalk": "^4.1.2",
    "file-type": "^16.5.4",
    "hyperlinker": "1.0.0",
    "inquirer": "^8.0.0",
    "supports-hyperlinks": "2.2.0",
    "twilio": "^5.3.0",
    "untildify": "^4.0.0"
  },
  "devDependencies": {
    "@actions/core": "^1.0.0",
    "@actions/github": "^6.0.0",
    "@oclif/dev-cli": "^1.22.2",
    "@oclif/test": "^2.1.1",
    "@semantic-release/changelog": "^6.0.1",
    "@semantic-release/exec": "^6.0.3",
    "@semantic-release/git": "^10.0.1",
    "@twilio/cli-test": "3.0.0",
    "aws-sdk": "^2.1361.0",
    "chai": "^4.3.4",
    "conventional-changelog-conventionalcommits": "^6.0.0",
    "eslint": "^7.27.0",
    "eslint-config-twilio": "~1.31.0",
    "eslint-config-twilio-mocha": "~1.31.0",
    "flush-cache": "1.0.1",
    "globby": "^11.0.1",
    "mocha": "^10.0.0",
    "nock": "^13.0.2",
    "nyc": "^15.1.0",
    "oclif": "^4.10.11",
    "proxyquire": "^2.1.3",
    "semantic-release": "^22.0.1",
    "sinon": "^10.0.0",
    "tildify": "^2.0.0",
    "tmp": "^0.2.1",
    "ts-node": "^10.9.1",
    "tslib": "^2.3.1",
    "typescript": "^4.4.3"
  },
  "optionalDependencies": {
    "ngrok": "^4.3.3"
  },
  "engines": {
    "node": ">=18.17"
  },
  "oclif": {
    "commands": "./src/commands",
    "bin": "twilio",
    "scope": "twilio",
    "topicSeparator": " ",
    "additionalHelpFlags": [
      "-h"
    ],
    "additionalVersionFlags": [
      "-v"
    ],
    "plugins": [
      "@oclif/plugin-autocomplete",
      "@oclif/plugin-plugins",
      "@oclif/plugin-warn-if-update-available",
      "@oclif/plugin-update",
      "@oclif/plugin-version"
    ],
    "warn-if-update-available": {
      "timeoutInDays": 45,
      "message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>. For more information: https://twil.io/cli ",
      "registry": "https://registry.npmjs.org"
    },
    "topics": {
      "phone-numbers": {
        "description": "manage Twilio phone numbers"
      },
      "profiles": {
        "description": "manage credentials for Twilio profiles"
      },
      "config": {
        "description": "manage Twilio CLI configurations"
      }
    },
    "hooks": {
      "init": [
        "./src/hooks/init/twilio-api",
        "./src/hooks/init/buy-phone-number",
        "./src/hooks/init/plugin-verification"
      ],
      "plugins:preinstall": [
        "./src/hooks/plugin-install"
      ],
      "prerun": [
        "./src/hooks/prerun/install-prerun"
      ],
      "postrun": [
        "./src/hooks/postrun/plugin-postrun"
      ],
      "command_not_found": [
        "./src/hooks/command-not-found"
      ]
    },
    "macos": {
      "identifier": "com.twilio.cli",
      "sign": "Developer ID Installer: Twilio, Inc."
    },
    "update": {
      "s3": {
        "xz": true,
        "bucket": "twilio-cli-prod"
      }
    },
    "helpClass": "./src/services/twilio-help/custom-help"
  }
}

Steps to Reproduce

Please provide the steps to reproduce this bug:

  1. run twilio login
  2. run twilio flex:plugins:create plugin_sample -l debug
[DEBUG] Config File: C:\Users\AAAA\.twilio-cli\config.json
[DEBUG] Using profile: test_profile
[DEBUG] Found command "flex:plugins:create" 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] Cannot read properties of undefined (reading 'statusCode')
[DEBUG] TypeError: Cannot read properties of undefined (reading 'statusCode')
    at Object.packageJson [as default] (C:\Users\AAAA\.twilio-cli\node_modules\package-json\index.js:71:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
 »   Error: EEXIT: 1
 »   Code: EEXIT

Expected Behavior

Should able to create plugin

Screenshots

Additional Context

I have HTTP Proxy configured with px, and able to install npm packages for other projects.
Also configured HTTP proxy in .npmrc

@phinzin phinzin added the bug Something isn't working label Feb 4, 2025
@phinzin
Copy link
Author

phinzin commented Feb 7, 2025

hello @ktalebian , can you help?

@sanjeet-tw sanjeet-tw assigned pragya-arora and unassigned ktalebian Feb 20, 2025
@pragya-arora
Copy link
Contributor

Hi, was the create plugin command working with the HTTP proxy for any previous Twilio CLI/ Flex Plugin Builder versions?
Also could you please check if you are able to install the following Twilio packages using NPM:

  1. npm i @twilio/flex-ui
  2. npm i @twilio/flex-dev-utils

@phinzin
Copy link
Author

phinzin commented Feb 21, 2025

Hi, was the create plugin command working with the HTTP proxy for any previous Twilio CLI/ Flex Plugin Builder versions? Also could you please check if you are able to install the following Twilio packages using NPM:

1. `npm i @twilio/flex-ui`

2. `npm i @twilio/flex-dev-utils`

Hi, thanks for taking care, i created support ticket n twilio and they guided to fix it.
There is an issue with twilio plugin.

@phinzin phinzin closed this as completed Feb 21, 2025
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

3 participants