This is an automated email from the ASF dual-hosted git repository. alexkli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git
commit 53889bbb4b62174c1a2dcfc2a747a9cc590ff4ad Author: Alexander Klimetschek <[email protected]> AuthorDate: Tue Apr 14 01:31:05 2020 -0700 ignore 503 errors with activation db agent --- src/agentmgr.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/agentmgr.js b/src/agentmgr.js index 3275b72..7c5ebf0 100644 --- a/src/agentmgr.js +++ b/src/agentmgr.js @@ -378,6 +378,10 @@ class AgentMgr { // 43 => graceful shutdown (for unit tests) console.log("Graceful shutdown requested by agent (only for unit tests)"); return null; + } else if (e.statusCode === 503 && !this.concurrency) { + console.warn("Server responded with 503 while looking for new activation records. Consider using --ngrok option.") + // can be server is overloaded with activation list requests, wait a bit extra and retry + sleep(1000); } else { // otherwise log error and abort console.error();
