Searching bookmark using BookmarkSearchTime() then throw Timeout exception

ServerCommandService.Bookmark[] bookmarks = _scs.BookmarkSearchTime(
          loginInfo.Token,
          bookmarkDateTime.ToUniversalTime(),
          td,
          GetBookmarkLimit(),
          _mediaDeviceTypes,
          new Guid[0],
          new string[0],
          "");

Exception:

The request channel timed out after 00:00:59.9980001 while waiting for a response. Either increase the timeout value passed to the Request call or increase the SendTimeout value on the Binding. The time allotted for this operation could have been part of a longer timeout period. —> System.TimeoutException: The HTTP request to ‘http://IPAdress/ManagementServer/ServerCommandService.svc’ exceeded the allotted timeout period of 00:01:00. The time allotted for this operation could have been part of a longer timeout period. —> System.Net.WebException: The request was aborted: The operation has timed out.

場所 System.Net.HttpWebRequest.GetResponse()

場所 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

— 内部例外スタック トレースの終わり —

場所 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)

場所 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

場所 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

— 内部例外スタック トレースの終わり —

Server stack trace:

場所 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

場所 System.ServiceModel.Channels.ClientReliableChannelBinder`1.RequestClientReliableChannelBinder`1.OnRequest(TRequestChannel channel, Message message, TimeSpan timeout, MaskingMode maskingMode)

場所 System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)

場所 System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout)

場所 System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message message, TimeSpan timeout)

場所 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

場所 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

場所 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

場所 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

場所 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

場所 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

場所 ServerCommandService.IServerCommandService.BookmarkSearchTime(String token, DateTime time, TimeDuration timeLimit, Int32 countLimit, MediaDeviceType[] deviceTypes, Guid[] optDeviceIds, String[] optUsers, String optSearchStr)

場所 ServerCommandService.ServerCommandServiceClient.BookmarkSearchTime(String token, DateTime time, TimeDuration timeLimit, Int32 countLimit, MediaDeviceType[] deviceTypes, Guid[] optDeviceIds, String[] optUsers, String optSearchStr)

場所 XprotectApiServer.HttpServer.SearchBookmarkByDateTime(DateTime bookmarkDateTime)

some one help as soon as possible, its helpful to solve this issue @ASD MILESTONE@BCPS Milestone@CACC Milestone@Milestone Developer

Have you tried unmodified bookmark sample (https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/bookmarkcreator/readme.html&tree=tree_3.html )?

If not, please check if it works.

Our idea is that you might be asking for a big amount of data which will cause the timeout, you might need to limit the amount of data you ask for the sample does this.

yes we tried and its work, and we are make our application for limited search then its work.