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

How to increase max request length ? #53

Closed
LvffY opened this issue Sep 17, 2021 · 2 comments
Closed

How to increase max request length ? #53

LvffY opened this issue Sep 17, 2021 · 2 comments

Comments

@LvffY
Copy link

LvffY commented Sep 17, 2021

Hi,

We're using your (great) code to deploy our Sonarqube in Azure Webapp.

It works like a charm, except for one feature. When we analysed a project, we'd like to go to the window "measures" but when we get here, we only get some The request cannot be processed. Try again later.

sonar_issue

Actually, after some digging, it turns out this seems to be some kind of badly configuration set up.

But because I'm (really) not an expert in Azure web app, I don't know where to "increase this request size".

Could you help me on this ? May be you already have this kind of issue and I'm totally misunderstanding the problem

Best regards,

LvffY

@vanderby
Copy link
Owner

I am glad you find it useful @LvffY!

I have not ran into query length issues myself, but doing some internet research it appears a web.config in the wwwroot folder should help you out.

@LvffY
Copy link
Author

LvffY commented Sep 20, 2021

Hello @vanderby

That perfectly solved my issue :)

For anyone who's falling in here, I made the changes explained in first link pointed by @vanderby.

Concretely, I changed my file C:\home\site\wwwroot\web.config (because of my windows setup, probably /home/site/wwwroot/web.config in Linux setup) and add the following lines in the security.webServer section :

<security>
  <requestFiltering>
     <!-- 5000 is an arbitrary choice based on the request that failed for me -->
    <requestLimits maxQueryString="5000" />
  </requestFiltering>
</security>

@vanderby May be you could pin this issue to avoid you to answer another issue on this point ?

Anyway, thanks a lot for your help !

Best regards,

LvffY

@vanderby vanderby changed the title How to increase request args length ? How to increase max request length ? Sep 20, 2021
@vanderby vanderby pinned this issue Sep 20, 2021
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

2 participants