flex-plugin-builder icon indicating copy to clipboard operation
flex-plugin-builder copied to clipboard

[BUG] Too Many Plugins

Open c1moore opened this issue 4 years ago • 1 comments

Description

We are working in a Flex instance that currently has 25 plugins. We have archived 5 of them to get around the 25 plugin limit, but where still getting the following error while trying to deploy:

flex-plugin-reporting: ✖ Request post to Environments failed with status 400 and message Environments are limited to less than or equal to 25
flex-plugin-reporting: [DEBUG] Found command "flex:plugins:deploy" plugin: @twilio-labs/plugin-flex
flex-plugin-reporting:  » 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"
flex-plugin-reporting: [DEBUG] Request post to Environments failed with status 400 and message Environments are limited to less than or equal to 25
flex-plugin-reporting: [DEBUG] Error: Request post to Environments failed with status 400 and message Environments are limited to less than or equal to 25
flex-plugin-reporting:     at Http.<anonymous> (/home/circleci/.twilio-cli/node_modules/flex-plugin-scripts/dist/clients/http.js:162:27)
flex-plugin-reporting:     at step (/home/circleci/.twilio-cli/node_modules/flex-plugin-scripts/dist/clients/http.js:52:23)
flex-plugin-reporting:     at Object.next (/home/circleci/.twilio-cli/node_modules/flex-plugin-scripts/dist/clients/http.js:33:53)
flex-plugin-reporting:     at /home/circleci/.twilio-cli/node_modules/flex-plugin-scripts/dist/clients/http.js:27:71
flex-plugin-reporting:     at new Promise (<anonymous>)
flex-plugin-reporting:     at __awaiter (/home/circleci/.twilio-cli/node_modules/flex-plugin-scripts/dist/clients/http.js:23:12)
flex-plugin-reporting:     at Http.onError (/home/circleci/.twilio-cli/node_modules/flex-plugin-scripts/dist/clients/http.js:151:48)
flex-plugin-reporting:     at processTicksAndRejections (internal/process/task_queues.js:95:5)

Note: this plugin actually isn't new. It's one that has existed for a while.

Versions

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

package version
twilio-cli 2.32.1
@twilio/plugin-flex 1.22.11
flex-plugin-scripts X.Y.Z
node 14.17
npm X.Y.Z

Package.json

We can't provide this information publicly.

Steps to Reproduce

Please provide the steps to reproduce this bug:

  1. Deploy 25 plugins
  2. Deploy a 26th plugin (Errors)
  3. Archive 5 plugins
  4. Deploy original 20 plugins (bumping react version, so need to redeploy all)

Expected Behavior

We should be able to deploy up to 25 unarchived plugins. Archiving a plugin should allow us to deploy additional plugins.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

c1moore avatar Oct 26 '21 16:10 c1moore

Did you manage to find any workaround to this?

rdoyle11 avatar Aug 19 '22 09:08 rdoyle11

Hi,

This is a long open item more than a year now, hence closing it. Feel free to reopen it if still required.

anjha91 avatar Oct 04 '23 08:10 anjha91