@taskcluster/client 111.0.0 → 113.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apis.js +1 -1
- package/src/client.js +3 -0
package/package.json
CHANGED
package/src/apis.js
CHANGED
|
@@ -4050,7 +4050,7 @@ export default {
|
|
|
4050
4050
|
"reference": {
|
|
4051
4051
|
"$schema": "/schemas/common/api-reference-v0.json#",
|
|
4052
4052
|
"apiVersion": "v1",
|
|
4053
|
-
"description": "The web-server service
|
|
4053
|
+
"description": "The web-server service handles user login and Pulse message streaming\nfor the Taskcluster UI, as well as profiler endpoints that generate Firefox Profiler–compatible\nprofiles from task group metadata and task logs.",
|
|
4054
4054
|
"entries": [
|
|
4055
4055
|
{
|
|
4056
4056
|
"args": [
|
package/src/client.js
CHANGED
|
@@ -428,6 +428,9 @@ export const createClient = (reference, name) => {
|
|
|
428
428
|
err.body = res.body;
|
|
429
429
|
err.code = res.body.code || 'UnknownError';
|
|
430
430
|
err.statusCode = res.statusCode;
|
|
431
|
+
if (res.statusCode === 503 && err.code === 'ServiceUnavailable') {
|
|
432
|
+
err.overCapacity = true;
|
|
433
|
+
}
|
|
431
434
|
|
|
432
435
|
// Decide if we should retry or just throw
|
|
433
436
|
if (
|