You can't. Use Lazy operations - this will send it as a POST and avoid this error.
How to increase maxUrlLength in RavenDB?
-
19-09-2022 - |
Question
Lets say I want to check if field with very long key exists in my database. So I query it like:
var fieldId = "Fields/Very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_LONG_FIELD_ID";
_fieldRepository.Get(fieldId);
And then I get BadRequest exception from RavenDB which says:
The length of the URL for this request exceeds the configured maxUrlLength value.
I am using RavenDb 2330 version.
Question: how can I increase the maxUrlLength property in RavenDb?
No correct solution
OTHER TIPS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow