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

Internal Server Error due to long query strings #283

Open
appukuttan-shailesh opened this issue Aug 11, 2020 · 1 comment
Open

Internal Server Error due to long query strings #283

appukuttan-shailesh opened this issue Aug 11, 2020 · 1 comment
Assignees

Comments

@appukuttan-shailesh
Copy link
Collaborator

For purposes of comparing validation results, I require to fetch the results assoicated with numerous model/test instances.
So queries such as following arise:

GET https://validation-v2.brainsimulation.eu/results-extended/?model_instance_id=e7e17b98-86fd-4ede-af2b-831642ca47c9&model_instance_id=20b57bd8-7076-4f46-a361-84255b06401c&model_instance_id=233a109e-d26f-4f50-809e-1aa52d3fa84c&model_instance_id=3342e542-5fb1-45aa-b7be-69e94f809160&model_instance_id=938807e6-0d28-4d8c-9d73-95f1df1af282&model_instance_id=403d865e-417c-45fe-97cf-83a9613ae664&model_instance_id=20e69189-ab22-4967-88a0-9e719a547380&model_instance_id=a5e4a43e-444a-49c3-9435-05ab934218ca&model_instance_id=f7153820-e3db-48b8-84ca-389c50d9298a&model_instance_id=cf81d7a3-5f42-4e2e-b884-6121c6f026ba&model_instance_id=d6713000-db8b-4c33-aabf-a13a5224b404&model_instance_id=da1b7cc5-c9af-46d1-81fe-bc4661077e7d&size=1000000

(I have also tested with /results/ end-point and have the same problem)

I get the following response:

500 Internal Server Error

Somewhat shorter queries seem to work (even though with delay):
GET https://validation-v2.brainsimulation.eu/results-extended/?model_instance_id=e7e17b98-86fd-4ede-af2b-831642ca47c9&model_instance_id=20b57bd8-7076-4f46-a361-84255b06401c&model_instance_id=233a109e-d26f-4f50-809e-1aa52d3fa84c&model_instance_id=3342e542-5fb1-45aa-b7be-69e94f809160

It would be useful if this problem can be fixed, and we can avoid making multiple calls as it affects performance (more overhead) and also leads to unnecessary 'hacky' coding.

@apdavison
Copy link
Member

It seems various parts of the web put limits on the length of URLs. Maybe the best approach is to provide a new POST-based endpoint so that long queries can be provided in the request body.

@apdavison apdavison changed the title v2 REST API Interal Server Error Internal Server Error due to long query strings May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants