hbdmapi / huobi_sdk_CSharp

CSharp SDK for Huobi API
Apache License 2.0
9 stars 4 forks source link

阿里云日本服务器,网络连接问题。 502,504。一天会出现好几次 #4

Open jonas20 opened 3 years ago

jonas20 commented 3 years ago

当前时间:2021-04-21 20:35:32:2830 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 502 (Bad Gateway).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 502 (Bad Gateway). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:35:33:2253 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 502 (Bad Gateway).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 502 (Bad Gateway). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:35:33:8863 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 502 (Bad Gateway).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 502 (Bad Gateway). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:41:02:5874 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 502 (Bad Gateway).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 502 (Bad Gateway). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:41:03:9521 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 502 (Bad Gateway).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 502 (Bad Gateway). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:15:3158 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:16:7505 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:18:0416 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:18:6493 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:19:3711 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:21:0265 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:22:6807 System.AggregateException: One or more errors occurred. (Unexpected character encountered while parsing value: <. Path '', line 0, position 0.) ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Huobi.SDK.Core.HttpRequest.PostAsync[T](String url, String body, String mediaTyp) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 92 at Huobi.SDK.Core.LinearSwap.RESTful.OrderClient.CrossGetHisOrderAsync(String contractCode, Int32 tradeType, Int32 type, String status, Int32 createDate, Nullable1 pageIndex, Nullable1 pageSize, String sortBy) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\OrderClient.cs:line 512 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Models.StopProfitLossModel.get() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\Models\StopProfitLossModel.cs:line 39 at HBLHJY.Program.StopLossSynchro() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Program.cs:line 250

当前时间:2021-04-21 20:43:23:3171 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:43:23:5523 System.AggregateException: One or more errors occurred. (Unexpected character encountered while parsing value: <. Path '', line 0, position 0.) ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Huobi.SDK.Core.HttpRequest.PostAsync[T](String url, String body, String mediaTyp) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 92 at Huobi.SDK.Core.LinearSwap.RESTful.OrderClient.CrossGetOpenOrderAsync(String contractCode, Nullable1 pageIndex, Nullable1 pageSize, String sortBy, Nullable1 tradeType) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\OrderClient.cs:line 432 --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Models.DealEntrustModel.get() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\Models\DealEntrustModel.cs:line 45 at HBLHJY.Program.ReOrder() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Program.cs:line 197

当前时间:2021-04-21 20:44:04:2424 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.RecentTrends.RecentTrendsKline(String cycleCode) in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\Utilities\Compute\RecentTrends.cs:line 43 at HBLHJY.Class.Models.CeLueReleaseModel.OpenBuy() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\CeLueReleaseModel.cs:line 46 at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 106

当前时间:2021-04-21 20:44:04:3711 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:44:04:9187 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:06:8590 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:07:3913 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:08:0219 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:08:3502 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:08:4933 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:08:8208 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.RecentTrends.RecentTrendsKline(String cycleCode) in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\Utilities\Compute\RecentTrends.cs:line 43 at HBLHJY.Class.Models.CeLueReleaseModel.OpenBuy() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\CeLueReleaseModel.cs:line 45 at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 106

当前时间:2021-04-21 20:45:10:9091 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:11:2345 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:11:9302 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:13:5242 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

当前时间:2021-04-21 20:45:55:9271 System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 504 (Gateway Time-out).) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 504 (Gateway Time-out). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(Task1 getTask) at Huobi.SDK.Core.HttpRequest.GetAsync[T](String url) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\HttpRequest.cs:line 37 at Huobi.SDK.Core.LinearSwap.RESTful.MarketClient.GetKLineAsync(String contractCode, String period, Nullable1 size, Nullable1 from, Nullable1 to) in C:\Users\Administrator\Documents\hb全仓\Huobi.SDK.Core\LinearSwap\RESTful\MarketClient.cs:line 177 --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at HBLHJY.Class.Utilities.Compute.ReleaseRun.run() in C:\Users\Administrator\Documents\hb全仓\HBLHJY\Class\CeLue\Release\RunRelease.cs:line 46

ad-long commented 3 years ago

502,504 这个是网络问题.需要检查此时的网络是否通畅. 需要注意的是, 代码里面默认的是国内使用的调试域名 api.btcgateway.pro. 把代码里面的 public class MarketClient { private const string DEFAULT_HOST = "api.btcgateway.pro"; 改成 api.hbdm.vn 试试.

jonas20 commented 3 years ago

代码里的我使用的域名是: "api.hbdm.com" 。是否还有更快的域名?

------------------ 原始邮件 ------------------ 发件人: "hbdmapi/huobi_futures_CSharp" @.>; 发送时间: 2021年4月22日(星期四) 下午2:58 @.>; @.**@.>; 主题: Re: [hbdmapi/huobi_futures_CSharp] 阿里云日本服务器,网络连接问题。 502,504。一天会出现好几次 (#4)

502,504 这个是网络问题.需要检查此时的网络是否通畅. 需要注意的是, 代码里面默认的是国内使用的调试域名 api.btcgateway.pro. 把代码里面的 public class MarketClient { private const string DEFAULT_HOST = "api.btcgateway.pro"; 改成 api.hbdm.vn 试试.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ad-long commented 3 years ago

总共有三个域名 api.hbdm.com api.btcgateway.pro, api.hbdm.vn(AWS服务器用户推荐使用) 关于哪个最快, 可以参考这个: Q20: 如何判断推送是否延迟 b. 查看本地网络和服务器间的稳定性和速度(请把 api.btcgateway.pro 替换为程序使用的域名) 详细连接地址: https://docs.huobigroup.com/docs/usdt_swap/v1/cn/#ws

jonas20 commented 3 years ago

你就说日本阿里云推荐用哪个吧

------------------ 原始邮件 ------------------ 发件人: "hbdmapi/huobi_futures_CSharp" @.>; 发送时间: 2021年4月22日(星期四) 下午5:39 @.>; @.**@.>; 主题: Re: [hbdmapi/huobi_futures_CSharp] 阿里云日本服务器,网络连接问题。 502,504。一天会出现好几次 (#4)

总共有三个域名 api.hbdm.com api.btcgateway.pro, api.hbdm.vn(AWS服务器用户推荐使用) 关于哪个最快, 可以参考这个: b. 查看本地网络和服务器间的稳定性和速度(请把 api.btcgateway.pro 替换为程序使用的域名) 详细连接地址: https://docs.huobigroup.com/docs/usdt_swap/v1/cn/#ws

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.