headers = {"authorization": f"Bearer {r3.json()['data']['access_token']}", "content-type": "application/json; charset=UTF-8"}
data4 = f'{{"fyers_id":"{username}","app_id":"{client_id[:-4]}","redirect_uri":"{redirect_uri}","appType":"100","code_challenge":"","state":"abcdefg","scope":"","nonce":"","response_type":"code","create_cookie":true}}'
r4 = s.post("https://api.fyers.in/api/v3/token", headers=headers, data=data4)
This code gives Response 503.
Other code to generate access token gives the below error.
verify_pin_result got failure - {"s": "error", "code": -1018, "message": "something went wrong"}
I am stuck with this authentication process. Please guide.