@nawal555
Since you are facing this in debug, can you add debugging in your code to print where it is failing - TCP Handshake or any other. Also, if you can check for firewall installed which might block sharing certificate.
Hi @Hardik the link you have referred to is for MacOS, can you please guide me (windows user)? I have not faced this error back days, suddenly arising 1-2 days back onwards. I think I assume, this SSL issue is coming from your server. Kindly check this or provide a way to solve from our end.
Note: Already uninstalled certifi and installed and changed PATH nothing worked.
I Checked with firewall turned off as well with same results …More ever pls guide how to check debug about TCP handshake or others…
but its failing at teh very first step as per below code…
async def connect(self):
try:
"""Initiates the connection to the Websockets."""
if not self.ws or self.ws.closed:
self.ws = await websockets.connect(WSS_URL)
await self.authorize()
await self.subscribe_instruments()
except Exception as e:
print("Error Due to Connect", e)
hi Hardick,
in above code i included this and connected forcefully where I got successful Authorization but soon it is getting disconnected with reason of Invalid Client like below massage. Informatively I renew token yesterday as expired and somebody else also did the same and facing same issue??? why invalid client here???
Problem is from DHAN side …where DHAN is sending disconnection_packet[0][4] == 808: print (“Disconnected: Invalid Client ID”)
@Hardik , @nawal555
In my case, I am a new subscriber… trying my hands for the 1st time and faced the issue… so any suggestions would be valuable… It creates a bad impression from my side when i see this considering its my 1st experience with these APIs
If you are using DhanHQ library for the first time and facing SSL issues for APIs, then kindly check local certificate installed and share the certificate version.
Also, if you face this post that, then let me know.
hi Hadick… I guess i was working on copy of my program and forgot to update access token. But if you can logs of yesterdays. I created 3 access token so confused. Anyway I just checked and now it only working with SSL disabled or default mode like i mentioned and yesterday it was not working.
With SSL enable It is still giving errors SSL Certificate errors… Pls note it was running fine before access token expiry with SSL but now its not …
Hi @Hardik ,
Can you kindly guide me on local certificate installation and its subsequent validations. Was there any documentation available around it…