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?

没有正确的解决方案

其他提示

You can't. Use Lazy operations - this will send it as a POST and avoid this error.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top