Legedric / ptmagic

Magic addon for Profit Trailer cryptocurrency trading bot.
Other
209 stars 32 forks source link

Dashboard (Top) update failed! #396

Closed ghost closed 6 years ago

ghost commented 6 years ago

Out of the blue, this message today.

Reinstalled 1.51, restarted everything, but still this message.

Any idea what I should do/check?

(PTM 1.5.0) does not give me this error!)

ghost commented 6 years ago

And this morning, my second instance of PTM gives me the same error.

Legedric commented 6 years ago

Please go to your monitor, login and then go to /_get/DashbardTop and see what error comes up there.

ghost commented 6 years ago

Error. An error occurred while processing your request. Request ID: 0HLCRJ5VTFJ5U:000000AB

Object reference not set to an instance of an object. at Monitor.Pages._get.DashboardTop_Page.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Razor.RazorView.d16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Razor.RazorView.d15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.AspNetCore.Mvc.Razor.RazorView.d14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.d22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Builder.RouterMiddleware.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Session.SessionMiddleware.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Session.SessionMiddleware.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.d6.MoveNext()

Legedric commented 6 years ago

Will be fixed with the next release.

ghost commented 6 years ago

@Legedric Thanks! And thanks for PTM!

freecoat commented 6 years ago

Still getting the error here:

Error. An error occurred while processing your request.

Request ID: 0HLD5440LVGE8:0000000A Object reference not set to an instance of an object.

at Globals.SystemHelper.GetMarketLink(String platform, String exchange, String market, String mainMarket) in D:\Tools\PTMagic\Globals\SystemHelper.cs:line 794 at Monitor.Pages._get.DashboardTop_Page.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Mvc.Razor.RazorView.d16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Mvc.Razor.RazorView.d15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.AspNetCore.Mvc.Razor.RazorView.d14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.d22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Builder.RouterMiddleware.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Session.SessionMiddleware.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Session.SessionMiddleware.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.d6.MoveNext()

freecoat commented 6 years ago

Version is 1.5.2

Legedric commented 6 years ago

@freecoat Please check what you set your "Exchange" to in your settings.general.json It seems to be not set at all.

freecoat commented 6 years ago

{ "GeneralSettings": { "Application": { "IsEnabled": true, "TestMode": false, "ProfitTrailerPath": "C:\Users\fricot\Documents\ProfitTrailer\", "AlwaysLoadDefaultBeforeSwitch": false, "FloodProtectionMinutes": 15, "Exchange": "Binance", "StartBalance": XX.XX, "InstanceName": "PTM" }, "Monitor": { "IsPasswordProtected": true, "OpenBrowserOnStart": true, "Port": 5000, "GraphIntervalMinutes": 30, "GraphMaxTimeframeHours": 24, "RefreshSeconds": 180, "MaxTopMarkets": 20, "MaxDCAPairs": 24, "LinkPlatform": null, "DefaultDCAMode": null, "RootUrl": "/" }, "Backup": { "IsEnabled": true, "MaxHours": 48 }, "Telegram": { "IsEnabled": false, "BotToken": null, "ChatId": null, "SilentMode": false } } }

M. L.

On Wed, Apr 18, 2018 at 7:46 PM, Legedric notifications@github.com wrote:

@freecoat https://github.com/freecoat Please check what you set your "Exchange" to in your settings.general.json It seems to be not set at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Legedric/ptmagic/issues/396#issuecomment-382471546, or mute the thread https://github.com/notifications/unsubscribe-auth/AjQUlz-9BhnE4wiJhfVxfNygC3Lb03YOks5tp3wNgaJpZM4TLAx3 .

freecoat commented 6 years ago

Solved. I configured a fresh default settings.general.json anew. Now it runs smooth. Thanks for your reaction.

M. L.

On Wed, Apr 18, 2018 at 9:23 PM, Matteo Lepore fricot@gmail.com wrote:

{ "GeneralSettings": { "Application": { "IsEnabled": true, "TestMode": false, "ProfitTrailerPath": "C:\Users\fricot\Documents\ \ProfitTrailer\", "AlwaysLoadDefaultBeforeSwitch": false, "FloodProtectionMinutes": 15, "Exchange": "Binance", "StartBalance": XX.XX, "InstanceName": "PTM" }, "Monitor": { "IsPasswordProtected": true, "OpenBrowserOnStart": true, "Port": 5000, "GraphIntervalMinutes": 30, "GraphMaxTimeframeHours": 24, "RefreshSeconds": 180, "MaxTopMarkets": 20, "MaxDCAPairs": 24, "LinkPlatform": null, "DefaultDCAMode": null, "RootUrl": "/" }, "Backup": { "IsEnabled": true, "MaxHours": 48 }, "Telegram": { "IsEnabled": false, "BotToken": null, "ChatId": null, "SilentMode": false } } }

M. L.

On Wed, Apr 18, 2018 at 7:46 PM, Legedric notifications@github.com wrote:

@freecoat https://github.com/freecoat Please check what you set your "Exchange" to in your settings.general.json It seems to be not set at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Legedric/ptmagic/issues/396#issuecomment-382471546, or mute the thread https://github.com/notifications/unsubscribe-auth/AjQUlz-9BhnE4wiJhfVxfNygC3Lb03YOks5tp3wNgaJpZM4TLAx3 .