OriginalException: System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Threading.Tasks.ValueTask1.get_Result() at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Threading.Tasks.ValueTask1.get_Result()
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask1 creationTask) at System.Threading.Tasks.ValueTask1.get_Result()
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Elasticsearch.Net.HttpConnection.Request[TResponse](RequestData requestData)
I wrote to support, company which I take hosting plan, and they answer to me
Dear Customer,
The issue is due to your website calls an external API.Please use "Outgoing Port" to open the connection for this API. SmarterASP.net
Thank you.
Ilysokhuja:
why i need this, i havent problem with AWS, why same service from cloud.elastic.co has error like this, why i should change something, if tomorrow i change my elastic to another cloud , should i change everytime, i think this is not good solution
Joy (staff)
7/28/2019 4:47:46 AM Dear Customer,
For security reason, we only allow 80 and 443 ports to third party server. If you are using different ports to connect to third party service, you will need to open outgoing port from our server to the specific server port.
If you changed the third party server to another one in the further, you will then need update your outgoing port setting to the new server ip.
Thank you.
Dear Customer,
You will need to upgrade your hosting account to our .net premium plan, so you can enable spacial port to the remote server.
It sounds like the issue is related to your hosting provider not allowing outbound connections on port 9243, which should be configurable on the hosting provider. Note that port 443 is also supported for HTTPS.
Today I changed my account cloud.elastic.co(I am using different URL), I didnt change any code for search, and create new index same version as before (v7.1.1), but i have unexpectedly error
2019-08-06 22:56:40.131 +05:00 [Warning] Invalid NEST response built from a unsuccessful (400) low level call on POST: /atiruz/_search?typed_keys=true
OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 400 from: POST /atiruz/_search?typed_keys=true. ServerError: Type: search_phase_execution_exception Reason: "all shards failed"
{"error":{"root_cause":[{"type":"query_shard_exception","reason":"failed to find geo_point field [location]","index_uuid":"01aoWJJfSeSLyhgXJX-uIg","index":"atiruz"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"atiruz","node":"RELnlMkQRVWY5BXnJ91ngw","reason":{"type":"query_shard_exception","reason":"failed to find geo_point field [location]","index_uuid":"01aoWJJfSeSLyhgXJX-uIg","index":"atiruz"}}]},"status":400}
This would be better to open as a New topic, since it's not related to the original topic.
It looks like the mapping either does not have a location field, or the location field is not mapped as a geo_point. Check the mapping in the index; if it's incorrect, you'll need to reindex, and if it's not there, you can add it to the index.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.