potential workaround: reduce request or delete old projects
Hi!
I have a problem with displaying the the projects page. When i go to https://sonarqube.local/projects
I don’t see any results. In browser console output i see error 400 and response : Server Error in '/' Application Runtime Error
I try do this request in postman and if i reduce its length to 2100 characters bug is fixed
I use IIS web server, so i try increase URL size limit, it did not help, then i try chage elasticsearch requests limits:
Based on what I’m seeing on our internal server, this is probably caused by the call to the api/measures/search service. Can you use the browser console to pull that URL & see whether the bulk of it is made up of projectKeys values or of metricKeys values?
And BTW, this is (99% sure) coming from IIS. I don’t know if there’s an absolute max, but if you bump that limit up high enough this should work.
URL include projectKeys and metricKeys its seems like: https://sonarqube.local/api/measures/search?projectKeys=project_name_1%project_name_2%project_name_n&metricKeys=metric_name_1%metric_name_2%metric_name_n
Thanks for the numbers. I’ve flagged this thread for the product team because I believe they need to take a look. In the meantime, I can only suggest you check the length of the longest request on the Projects page and set IIS to that +1.