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

feat(ui): Throw error on non-json api responses #57634

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Oct 5, 2023

We get 200 response codes sometimes from local network firewalls or adblockers that contain html. We should not pass the text response as this throws confusing errors further downstream.

fixes JAVASCRIPT-2MZ6

We get 200 response codes sometimes from local network firewalls that contain html. We should not pass the text response as this throws confusing errors further downstream.
@scttcper scttcper requested a review from a team October 5, 2023 22:10
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 5, 2023
static/app/api.tsx Outdated Show resolved Hide resolved
Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@scttcper scttcper merged commit 6c5aa19 into master Oct 10, 2023
41 checks passed
@scttcper scttcper deleted the scttcper/expect-json branch October 10, 2023 16:06
@malwilley malwilley added the Trigger: Revert add to a merged PR to revert it (skips CI) label Oct 12, 2023
@getsentry-bot
Copy link
Contributor

PR reverted: 423be54

getsentry-bot added a commit that referenced this pull request Oct 12, 2023
This reverts commit 6c5aa19.

Co-authored-by: malwilley <10888943+malwilley@users.noreply.github.com>
scttcper added a commit that referenced this pull request Oct 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components Trigger: Revert add to a merged PR to revert it (skips CI)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants