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

Errror Handling #10

Open
peterMuriuki opened this issue Sep 21, 2020 · 1 comment
Open

Errror Handling #10

peterMuriuki opened this issue Sep 21, 2020 · 1 comment

Comments

@peterMuriuki
Copy link
Collaborator

peterMuriuki commented Sep 21, 2020

currently :

  • we do not have robust exception handling. for instance during the authentication, sometimes opensrp endpoints fail with a non-200 status error e.g. on the endpoint opensrp/user-details.

The express app should be able to also handle such error, and provide an interface through which the source of the problem can be derived from faster.

@peterMuriuki
Copy link
Collaborator Author

res.redirect('/logout?serverLogout=true');
.

When an error is caught in the above line; the express server redirects to localhost:3000/logout even in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant