- ago
I am getting a NullReferenceException using the Schwab adapter and pulling up a chart. Here's a portion of the log:

Here is the latest exception detail:
CODE:
10/18/2024 08:11:42:613 Schwab Error getting History (MARA): Object reference not set to an instance of an object. NullReferenceException Object reference not set to an instance of an object. at WealthLab.Schwab.SchwabHistorical.RequestHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, Boolean includePartialBar, Boolean corrections, Nullable`1 lastRequestDate) at WealthLab.Schwab.SchwabHistorical.GetHistoryInternalWithCorrections(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, DateTime lastRequestDate) at WealthLab.Data.DataProviderBase.GetHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, DataRequestOptions cb) at WealthLab.Data.HistoricalDataValet.FindRepository(String v, HistoryScale map, DateTime serv, DateTime last2, Int32 res3start, IHistoryProvider cfg4, DataRequestOptions info5)


So, the exception occurs, but then it reconnects and the data is fetched. But, if you change the symbol, the error occurs again and then the data is fetched. Lather, rinse, repeat.

I'm not sure, but it seems I had streaming active on a chart yesterday. I disconnected the streaming. I put the computer to sleep. Today, I pulled up a new chart and the errors started. I can close all charts and bring up a new one and the problem persists.

If you need more info, please let me know.
0
141
Solved
1 Replies

Reply

Bookmark

Sort
Cone8
 ( 6.63% )
- ago
#1
The error aside, the frequent reconnects are either indicating a bad connection (unlikely) or that the websocket is in a mode that it can't recover from (likely). >> Restart WealthLab to refresh everything.
You should do that anyway at the start of each day.
0
Best Answer

Reply

Bookmark

Sort