Connection refused while sending POST request.

manish181192
Hi Guys,

I am currently creating my application on localhost. I have mentioned my Redirect URL : https://127.0.0.1:80.

Once i log in using https://kite.trade/connect/login?api_key=.
It is redirecting me to https://127.0.0.1:80/?status=success&request_token=. But the browser shows "CONNECTION REFUSED".

In code when a POST request is sent in requestAccessToken method. code shown below.
UserModel userModel = kiteconnect.requestAccessToken("",
"");

I am getting a "CONNECTION REFUSED ERROR".

Is there any checklist i need to abide before writing code.
Sign In or Register to comment.