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

Error when loading individuals page #693

Closed
ninetteadhikari opened this issue Sep 25, 2020 · 3 comments
Closed

Error when loading individuals page #693

ninetteadhikari opened this issue Sep 25, 2020 · 3 comments
Assignees
Labels
2 Simple issue requiring little effort bug Something isn't working

Comments

@ninetteadhikari
Copy link
Member

ninetteadhikari commented Sep 25, 2020

Current behavior
Error when loading Individuals page
URL: https://activity-dev.hikaya.dev/formlibrary/individual_list/0/0/0/

image
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to Form library > Individuals
  2. See error

Expected behavior
Individuals page load without error

@ninetteadhikari ninetteadhikari added bug Something isn't working 2 Simple issue requiring little effort labels Sep 25, 2020
@ninetteadhikari
Copy link
Member Author

ninetteadhikari commented Sep 25, 2020

@Kimaiyo077 can you please coordinate with @myugetsu and address this issue on dev? thankyouu!

@Kimaiyo077
Copy link
Collaborator

Sure @ninetteadhikari , I am looking into it

@TAnas0
Copy link
Collaborator

TAnas0 commented Sep 25, 2020

FYI

There is a request that should be failing explicitly but is not. It is the request supposed to fetch the individuals list.
It is responding with a status code 200 OK, although it is failing somewhere in the BE and returning an error message:

image

This is due to the way the error/exception is being handled in this line:

except Exception as e:

For the dropdown/toast that shows up, it is because the response received from said endpoint doesn't contain a data attribute (only an error one, when it fails), and it is in this then/catch statement:

toastr.error('There was a problem loading individauls from the database');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 Simple issue requiring little effort bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants