Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.
This repository was archived by the owner on May 2, 2023. It is now read-only.

Conflicting documentation #142

@frank-fajardo-a142179

Description

@frank-fajardo-a142179

The README document says this when handling the error event:

If you receive a 401 error you should reconnect() according to the retry policy guidelines mentioned above, in the closed section.

However, this appear to conflict with the linked API Retry Policy Recommendations which says:

ERROR CODE MEANING RECOMMENDATION
4xx Client side error Do not retry, need to fix the problem in the code
429 Too many requests Retry after at least 1 second; avoid bursts of requests
5xx Error on server side Retry 3 times with 5, 10, 15 second pause between retries

So it implies we should NOT reconnect on 4xx, except for 429. So do NOT reconnect on HTTP 401.

Which one is correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions