Kotak-Neo / kotak-neo-api

113 stars 105 forks source link

please check cant check postion, cant check limits, cant pull script master #34

Closed jolgfd closed 1 year ago

jolgfd commented 1 year ago

was able to login but cant do anything, cant check postion, cant check limits, cant pull script master i get below error in all attempt // ERROR msg (0) Reason: ChunkedEncodingError ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

{'Error': neo_api_client.exceptions.ApiException('(0)\nReason: ChunkedEncodingError\n("Connection broken: InvalidChunkLength(got length b\'\', 0 bytes read)", InvalidChunkLength(got length b\'\', 0 bytes read))\n')} //

sacbhatia commented 1 year ago

Possible that your connection is getting interrupted. got length b --> Indicates empty chunk received i.e. no data received after certain data. Probably connection interrupted.

Kotak-Neo commented 1 year ago

Please check your connection, the SDK has no issues. You may share the request you are passing. (mask your credentials before sharing).

shusinghal commented 1 year ago

I got the same error. Use this instead: a = client.positions() print(a)