문제

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