Errors when passing extra parameters in urlnot in dto

ServiceStack.Serialization.StringMapTypeDeserializer[0]
2021-06-08T17:27:13.912257931Z Property ‘subscription-key’ does not exist on type 'Entertainment.ServiceModel.DTO.SearchEntertainmen
this occurs when’subscription-keyis in the URL and Not in the dto
using 5/11.1 in .netcore 3.1

This shouldn’t be an error, is it being thrown as an Exception or Logged as an Error? It should just be an expected log warning that an unknown property value was sent with the request.

You can disable the warning by adding the property name to Config.IgnoreWarningsOnPropertyNames or you can disable all unknown property warnings by setting Config.IgnoreWarningsOnAllProperties = true.

these are being logged as warning

i got the error here’s the stack

at ServiceStack.CacheResponseExtensions.d__1.MoveNext() in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\CacheResponseAttribute.cs:line 202
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ServiceStack.CacheResponseAttribute.d__33.MoveNext() in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\CacheResponseAttribute.cs:line 132
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at ServiceStack.ServiceStackHost.d__386.MoveNext() in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\ServiceStackHost.Runtime.cs:line 227
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ServiceStack.ServiceStackHost.d__385.MoveNext() in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\ServiceStackHost.Runtime.cs:line 145
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at ServiceStack.Host.RestHandler.d__14.MoveNext() in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\RestHandler.cs:line 92