mehtadone / PTFeeder

Official GitHub for ProfitTrailer's best buddy, PT Feeder. Be sure to visit their GitHub too.
https://wiki.ptfeeder.co/
182 stars 33 forks source link

PT Feeder running problem #312

Closed a-mashaly closed 6 years ago

a-mashaly commented 6 years ago

I just setup the pre-installed windows vps service and PT is working fine. Feeder won't start and keeps giving me the following error. (since the upgrade as it was working fine on a local computer beforeupgrading and using vps service). PLEASE HELP?

C:\Users\Administrator\Desktop\pt-feeder>dotnet C:\Users\Administrator\Desktop\pt-feeder\pt-feeder.dll [21:58:30 INF] Starting PT Feeder [21:58:30 INF] Version: 1.5.0.670 [21:58:30 INF] Massive thanks to Elroy and team for Profit Trailer. [21:58:30 INF] https://github.com/taniman/profit-trailer [21:58:30 INF] Running from C:\Users\Administrator\Desktop\pt-feeder [21:58:31 INF] Detected Profit Trailer Version 2 [21:58:31 DBG] Ping Profit Trailer endpoint https:\localhost:8081 [21:58:31 DBG] Error whilst trying PT endpoint https:\localhost:8081/settingsapi/config/list?license=***** [21:58:31 ERR] Error occured whilst sending to PT settings api: System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set. at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request) at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, Cancellati onToken cancellationToken) at?.MoveNext() Hosting environment: Production Content root path: C:\Users\Administrator\Desktop\pt-feeder Now listening on: http://localhost:5001 Application started. Press Ctrl+C to shut down. Application is shutting down... [21:58:39 INF] Changes have been saved in database

mehtadone commented 6 years ago

You ProfitTrailerEndpoint1 needs to be https://localhost:8081

stefi01 commented 6 years ago

heres mine.
"ProfitTrailerApiEndPoint1": "https://localhost:8081", deffinatly says 8081 but when i run it gives an error

Content root path: C:\Users\Administrator\Desktop\ProfitTrailer_2.0\pt-feeder Now listening on: http://localhost:5001 THIS IS DEFINATLY NOT 8081 Application started. Press Ctrl+C to shut down.

nric commented 6 years ago

I also think this problem is real. I get:

dotnet pt-feeder.dll [19:10:56 INF] Starting PT Feeder [19:10:56 INF] Version: 1.5.1.685 [19:10:56 INF] Massive thanks to Elroy and team for Profit Trailer. [19:10:56 INF] https://github.com/taniman/profit-trailer [19:10:56 INF] Running from C:\Users\nric\Desktop\PT Feeder 2 Binance ETH Hosting environment: Production Content root path: C:\Users\nric\Desktop\PT Feeder 2 Binance ETH Now listening on: http://localhost:5001 Application started. Press Ctrl+C to shut down. [19:10:59 ERR] Error occured whilst sending to PT settings api: System.Net.Http. HttpRequestException: An error occurred while sending the request. ---> System.N et.Http.WinHttpException: Es ist ein Sicherheitsfehler aufgetreten at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.Tasks.RendezvousAwaitable1.GetResult() at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAw aiter.GetResult() at System.Net.Http.HttpClient.d__58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at ♠?.MoveNext()

hostsettings.json { "Host": { "ProfitTrailerFolder1": "C:\Users\nric\Desktop\ProfitTrailer 2 Binance ETH", "ProfitTrailerApiEndPoint1": "https://localhost:8071", "LicenseKey": "XXXXXXXXXXXXX", // License key for PT Feeder "CalculateTrailingValues": "true", // whether PT Feeder should calculate the trading values for you "TelegramBotId": "", // telegram bot id "TelegramChatId": "", // telegram chat id, "DiscordBotToken": "", // discord bot token "DiscordChatName": "", // discord channel name, "TestMode": "true" // whether watchmode should be enabled or not. This sets PAIR_trading_enabled as false. },

"Serilog": { "MinimumLevel": "Information" // Can be Information or Debug depending how much logging you want } }

PT itself works just fine, the port and path is correct and veryfied a dozend times.

mehtadone commented 6 years ago

Try changing your ProfitTrailerEndPoint1 to http

nric commented 6 years ago

that worked, thanks a lot! Keep up the great work with ptf.