diff --git a/app.py b/app.py index 19a3098..1d9311a 100755 --- a/app.py +++ b/app.py @@ -151,7 +151,7 @@ def post(self): sha = extract_sha(content) if not sha: # doesn't appear to be a git sha - error = "Doesn't look like a sha\n (%s) on %s" % (content, each["url"]) + error = "Doesn't look like a sha:\n (ā%sā)\n ā on: %s" % (content, each["url"]) return make_response(jsonify({"error": error})) deployments.append({"name": name, "sha": sha, "bugs": [], "url": url}) diff --git a/src/DeployPage.js b/src/DeployPage.js index 7061dfe..82ce0e9 100644 --- a/src/DeployPage.js +++ b/src/DeployPage.js @@ -82,7 +82,11 @@ class DeployPage extends React.Component { this.startLoad('shas'); try { const res = await ky - .post('/shas', { json: { owner, repo, deployments } }) + .post('/shas', { + json: { owner, repo, deployments }, + retries: 3, + timeout: 30000, + }) .json(); if (res.error) { @@ -94,7 +98,7 @@ class DeployPage extends React.Component { }); } } catch (error) { - console.warn('Error fetching shas!'); + console.warn('Error fetching deployment /shas or tags!'); console.error(error); this.setState({ error }); } finally { @@ -175,7 +179,7 @@ class DeployPage extends React.Component { > ) : !deployInfo ? (