You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the naming module, ServiceController's "create" method has an optional parameter protectThreshold. However, since it is a basic type and has no default value, if this parameter is not provided in actual use, an error will be reported.
naming模块中,ServiceController的create方法有一个可选参数protectThreshold,但由于其是基本类型且无默认值,在实际使用中如果不提供这个参数会导致报错。
Expected behavior
A request sent to the api create with out the param protectThreshold get an ok returned.
Acutally behavior
nacos return this:
caused: Optional float parameter 'protectThreshold' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.;
How to Reproduce
curl -X POST "127.0.0.1:8848/nacos/v1/ns/service?serviceName=12e"
Desktop (please complete the following information):
OS: Windows 10
Version nacos-server 1.3.2
Module naming
Additional context
No
The text was updated successfully, but these errors were encountered:
Describe the bug
In the naming module, ServiceController's "create" method has an optional parameter protectThreshold. However, since it is a basic type and has no default value, if this parameter is not provided in actual use, an error will be reported.
naming模块中,ServiceController的create方法有一个可选参数protectThreshold,但由于其是基本类型且无默认值,在实际使用中如果不提供这个参数会导致报错。
Expected behavior
A request sent to the api create with out the param protectThreshold get an ok returned.
Acutally behavior
nacos return this:
caused: Optional float parameter 'protectThreshold' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.;
How to Reproduce
curl -X POST "127.0.0.1:8848/nacos/v1/ns/service?serviceName=12e"
Desktop (please complete the following information):
Additional context
No
The text was updated successfully, but these errors were encountered: