Exception 'Message build error' while fetching Margin data

XG9131
Hi,

Will you please help me with this one. I am getting below exception while fetching the margin data. Is it because of odd hours ?

KiteConnect.GeneralException: 'Message build error'
KiteConnect.GeneralException occurred
HResult=0x80131500
Message=Message build error
Source=KiteConnect
StackTrace:
at KiteConnect.Kite.Request(String Route, String Method, Dictionary`2 Params)
at KiteConnect.Kite.GetMargins()
..
..

Thanks
Saurabh
  • sujith
    Can you run it in debug mode and paste logs here?
  • XG9131
    Thanks for your response, It seems to be working now..probably it was because of odd hours. By the way, how do we get logs in debug mode please, for future use ?
  • sujith
    You can check out here.
  • XG9131
    many thanks for the link.
    Is it only upto saying "Debug: true" while getting a Kite object? I assume everything is getting printed in lib based on this flag. Is it so ?
    kite = new Kite(MyAPIKey, Debug: true);
  • sujith
    Yes, it helps basically to debug when you come across an error. You can also read the raw response from the server.
  • XG9131
    Thank you. I will trace the logs in future problems.
This discussion has been closed.