Clinical-Genomics-Lund / bonsai

Visualize and analyze resistance and outbreak of bacterial pathogen
https://bonsai-wgs.readthedocs.io/en/latest/
GNU General Public License v3.0
4 stars 1 forks source link

Internal server error `requests.exceptions.HTTPError: 414 Client Error: Request-URI Too Long for url` when trying to cluster large quantity of samples from basket #80

Closed alkc closed 1 year ago

alkc commented 1 year ago

Describe the bug

Client crashes with requests.exceptions.HTTPError: 414 Client Error: Request-URI Too Long for url when sending a large number of samples to clustering. Error occurs in get_samples_by_id at L145 in cluster/views.py

To Reproduce Steps to reproduce the behavior:

  1. Set up bonsai instance and saturate with samples
  2. Add ~760 samples to basket
  3. Open basket and select cluster

Expected behavior

Cluster view should be displayed if possible, or cluster button should be disabled.

In any case the client should handle the error better.

Desktop (please complete the following information):

mhkc commented 1 year ago

Related with #81

mhkc commented 1 year ago

Fixed with #83