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

Handle 403 errors properly in global fashion #3028

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented Jan 30, 2020

We were showing blank screen on this 403 error. Should show global error screen

https://genie-private.cbioportal.org/study/summary?id=5e32067be4b01beff45d8174

@alisman alisman requested a review from inodb January 30, 2020 23:00
@@ -23,7 +23,7 @@ export class AppStore {
sendSentryMessage('ERRORHANDLER:' + error);
} catch (ex) {}

if (error.status && /400|500/.test(error.status)) {
if (error.status && /400|500|403/.test(error.status)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

really we should just handle everything that bubbles up here but i'm not quite ready to do so because there are some endpoints which say 404 to indicate no match (e.g quick search). So, need to do some more testing

@alisman alisman merged commit 3febd51 into cBioPortal:master Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants