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

API endpoint /api/action/organization_list frequently times out #461

Open
simon-20 opened this issue Aug 29, 2024 · 2 comments
Open

API endpoint /api/action/organization_list frequently times out #461

simon-20 opened this issue Aug 29, 2024 · 2 comments
Assignees

Comments

@simon-20
Copy link

Brief Description
The API endpoint /api/action/organization_list can be called with various parameters, or none.

As parameters are specified to include more information, the request time takes longer and longer.

With all_fields=true it takes around ~20 seconds.

With all_fields=true&include_extras=true it routinely takes 30+ seconds.

If you try to fetch all the available data, e.g., with:

http "https://iatiregistry.org/api/action/organization_list?all_fields=true&include_extras=true&include_tags=true&include_groups=true&include_users=true"

the request very often times out:

504 Gateway Time-out
nginx/1.24.0

Severity
Medium

Issue Location

https://iatiregistry.org/api/action/organization_list?all_fields=true&include_extras=true&include_tags=true&include_groups=true&include_users=true

Steps to Reproduce

Try to fetch the list of organisations with all the data possible.

@siwhitehouse
Copy link
Contributor

Thanks @simon-20 - I was able to reproduce the 504 error immediately.

@robredpath I think this is another issue for the future, unless you think it should have a high priority.

@robredpath
Copy link

@simon-20 if I use paging (using limit and offset) then I get responses quite quickly - is that a suitable workaround for your current work?

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

5 participants