Skip to content

Client timeout shorter than server timeout #419

@janbrasna

Description

@janbrasna

After figuring out why any configuration stopped working for mozilla/bedrock (currently suspecting tag pagination in /shas and following all the result pages separately), I've realized the /shas response eventually arrives according to network devtools, however the JS client already gave up waiting for it at that point.

(Yes, the API timeout is 10s, and the JS timeout is 10s too, but the /shas happily loads dozens of individual /tags API calls, so the real limit is the app/server timeout in this case…)

The ky post() can be easily configured, what about going from implicit retries: 2, timeout: 10000 to retries: 3, timeout: 30000 to at least consume what the server had to prepare? O:)

(This won't change the load really, as all the hard work's been done anyways, currently it's just thrown away as the client's not interested any more…)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions