From 34ab41555e78090b8b80e8c779556416c373d248 Mon Sep 17 00:00:00 2001 From: Jan Dusek Date: Wed, 19 Aug 2020 17:20:57 +0800 Subject: [PATCH] Solve 429 - Too Many Requests issue Added TWILIO_SERVERLESS_API_CONCURRENCY=1 to resolve an issue where `npm run deploy` would fail with: > ERROR Failed API Request 20429 > > Too Many Requests --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8ab1898..bec84d8 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "deploy": "react-scripts build && rm -rf deploy/assets/* && cp -r build/ deploy/assets/ && cd deploy && twilio serverless:deploy", + "deploy": "react-scripts build && rm -rf deploy/assets/* && cp -r build/ deploy/assets/ && cd deploy && TWILIO_SERVERLESS_API_CONCURRENCY=1 twilio serverless:deploy", "test": "react-scripts test", "eject": "react-scripts eject" },