Closed Bug 1478416 Opened 7 years ago Closed 7 years ago

tc-client-web retries 4xx errors, making signin take longer

Categories

(Taskcluster :: UI, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

References

()

Details

Attachments

(1 file)

When signing in, the UI code looks for an unused clientId, and does so by probing until it finds one that returns 404. But tc-client-web retries 4xx errors, so this means that finding that 404 requires several seconds, including backoff, before the error is propagated to the caller. Clients should only retry 5xx errors, anyway -- that's the behavior of the other client libraries. So I think doing the same in tc-client-web would both help UI performance, reduce load on services, and be the right thing to do..
Assignee: nobody → dustin
Yay, signin is way faster now!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Tools → UI and Tools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: