Kotak-Neo / kotak-neo-api

115 stars 105 forks source link

Error in scrip_master() API #16

Closed ketanwangade closed 1 year ago

ketanwangade commented 1 year ago

Hello Team,

I am getting the below error while calling the script_master() API.

Error :

Reason: ChunkedEncodingError
("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

{'error': ApiException('(0)\nReason: ChunkedEncodingError\n("Connection broken: InvalidChunkLength(got length b\'\', 0 bytes read)", InvalidChunkLength(got length b\'\', 0 bytes read))\n')}
shashwat-k19 commented 1 year ago

Might be some connection issues at your end, working fine for me. Force reinstall once, might work.

ketanwangade commented 1 year ago

Hi @shashwat-k19, Thanks for your response.

as per your instruction, I have called the same API on diff networks, still getting the same error and also force installed the package.

conquistadorjd commented 1 year ago

I don't think there is an issue with client.script_master() API, it is working fine for me as well. However I have following query.

In Script master CSV files, there is a field "lExpiryDate ", It seems this field is in epoch, however when I tried to convert it to normal date,

e.g. for today's expiry (3rd Aug 2023), column has value as "1375972200" If I convert this from epoch to datetime, it gives me a date of Thursday, August 8, 2013 8:00:00 PM GMT+05:30 month and day is correct however year is 2013 instead of 2023.

Can someone clarify on this column in Script_master ? Script master link for nse_fo where I am facing this issue: https://lapi.kotaksecurities.com/wso2-scripmaster/v1/prod/2023-08-03/transformed/nse_fo.csv

Note: I am observing this issue in each days file.