Skip to main content
Solved

Dropdown choose - Bad request


Ionut
Warrior
Forum|alt.badge.img+2

Hi!

So we recently installed our app on an on premise environment and an error that we don't really know where else to look at is the following one:

We are getting 400 Bad Request - Invalid URL in the moment the user is choosing something from that dropdown.

The target for that dropdown is a view which based on other columns given is filtering the results, this is working good in all other environments that we have.

We tried it in

windows gui and there is also working and in indicium live error log there is no result

 

We tried also other tasks that are working in the same way and there everything is working fine, so it might be a local issue for add/edit tasks which we don't have more ideas how to track.

Do you have any suggestions? Thanks!

Best answer by Erwin Ekkel

Could you check if the link is perhaps too long? You can get a 400 error in IIS if the link exceeds the maximum length. If you copy the link and paste it in the browser does it work, if not try removing some info untill it works. 

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+17
  • Moderator
  • 761 replies
  • Answer
  • April 29, 2025

Could you check if the link is perhaps too long? You can get a 400 error in IIS if the link exceeds the maximum length. If you copy the link and paste it in the browser does it work, if not try removing some info untill it works. 


Ionut
Warrior
Forum|alt.badge.img+2
  • Author
  • Warrior
  • 26 replies
  • April 29, 2025
Erwin Ekkel wrote:

Could you check if the link is perhaps too long? You can get a 400 error in IIS if the link exceeds the maximum length. If you copy the link and paste it in the browser does it work, if not try removing some info untill it works. 

Ok, we'll check, thanks!


Ionut
Warrior
Forum|alt.badge.img+2
  • Author
  • Warrior
  • 26 replies
  • April 30, 2025
Erwin Ekkel wrote:

Could you check if the link is perhaps too long? You can get a 400 error in IIS if the link exceeds the maximum length. If you copy the link and paste it in the browser does it work, if not try removing some info untill it works. 

Hi!

We did check and it wasn't the link length, but the individual segment length.

Thanks for the track you gived to us, we managed to solve this.

For others that may encounter the error we were able to solve it by using this: https://stackoverflow.com/questions/40448588/i-get-a-400-bad-request-invalid-url-when-the-length-of-the-request-exceeds-320/48685990 and from there this https://stackoverflow.com/questions/15004232/wcf-get-url-length-limit-issue-bad-request-invalid-url posts on stackoverflow.

So this is what we did:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters And the value name is UrlSegmentMaxLength. If it is not there, create one with Type of REG_DWORD. And specify a higher value for value data such as 1000 in hexadecimal or 4096 in decimal.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings