Hello Martijn,
Please find the 'response' object below. Should I configure HttpConnection.RequestTimeout to some big number? If so, how can I compute what the value should be? Will that work? Are there any other connection settings (keepalive?) I should look into when transferring very large files?
FYI, At this stage, I am constrained to a small server shared with other app services. Its running at 96% capacity but is fairly responsive. Will this have an impact? Are there any ES levers I can pull?
Regards,
Raj
response.lApiCall
{
"Success": false,
"HttpMethod": 1,
"Uri": "http://<my_es_endpoint>:9200/eng-b9ee2d2a-0dce-461e-ac4b-2acb0c120075/esevidencetype/6ab07910-f081-e711-8140-000d3a13f5d3/_update",
"RequestBodyInBytes": null,
"ResponseBodyInBytes": null,
"Body": null,
"HttpStatusCode": null,
"AuditTrail": [
{
"Event": 9,
"Started": "2017-09-25T16:24:25.9540064Z",
"Ended": "2017-09-25T16:25:26.1192555Z",
"Node": {
"Uri": "http://<my_es_endpoint>:9200/",
"IsResurrected": false,
"HttpEnabled": true,
"HoldsData": true,
"MasterEligible": true,
"Id": null,
"Name": null,
"FailedAttempts": 1,
"DeadUntil": "2017-09-25T16:26:26.123257Z",
"IsAlive": false
},
"Path": "eng-b9ee2d2a-0dce-461e-ac4b-2acb0c120075/esevidencetype/6ab07910-f081-e711-8140-000d3a13f5d3/_update",
"Exception": null
},
{
"Event": 11,
"Started": "2017-09-25T16:25:26.1372479Z",
"Ended": "0001-01-01T00:00:00",
"Node": null,
"Path": null,
"Exception": null
}
],
"SuccessOrKnownError": false,
"OriginalException": {
"ClassName": "System.Net.WebException",
"Message": "The operation has timed out",
"Data": {},
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at System.Net.HttpWebRequest.GetResponse()\r\n at Elasticsearch.Net.HttpConnection.Request[TReturn](RequestData requestData) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Connection\HttpConnection.cs:line 143",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nGetResponse\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.HttpWebRequest\nSystem.Net.WebResponse GetResponse()",
"HResult": -2146233079,
"Source": "System",
"WatsonBuckets": null
},
"ServerError": null,
}
DebugInformation:
Invalid NEST response built from a unsuccessful low level call on POST: /eng-b9ee2d2a-0dce-461e-ac4b-2acb0c120075/esevidencetype/6ab07910-f081-e711-8140-000d3a13f5d3/_update
Audit trail of this API call:
- [1] BadResponse: Node: http://<my_es_endpoint>:9200/ Took: 00:01:00.1652491
- [2] MaxTimeoutReached: Took: -736596.16:25:26.1372479
OriginalException: System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at Elasticsearch.Net.HttpConnection.Request[TReturn](RequestData requestData) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Connection\HttpConnection.cs:line 143
Request:
<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>
Response:
<Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>