Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve checks for XHRRequest error responses #804

Merged
merged 4 commits into from
Oct 7, 2021

Conversation

owenpearson
Copy link
Member

@owenpearson owenpearson commented Sep 30, 2021

Some parts of the realtime app use X-Ably-ErrorCode instead of x-ably-errorcode for some reason which was causing problems in some of the browser tests.

Also partial errors from batch requests don't have the header at all so this PR adds a check for the 40020 error code.

@github-actions github-actions bot temporarily deployed to staging/pull/804/bundle-report September 30, 2021 17:02 Inactive
@owenpearson owenpearson changed the title Check for alternative casing in x-ably-errorcode header Improve checks for XHRRequest error responses Sep 30, 2021
@github-actions github-actions bot temporarily deployed to staging/pull/804/bundle-report September 30, 2021 18:01 Inactive
browser/lib/transport/xhrrequest.js Outdated Show resolved Hide resolved
browser/lib/transport/xhrrequest.js Outdated Show resolved Hide resolved
@owenpearson owenpearson merged commit 741513c into main Oct 7, 2021
@owenpearson owenpearson deleted the feature/errorcode-header-casing branch October 7, 2021 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants