API is giving error code -96

I tried below code to connect Fyers API and received this error

{‘s’: ‘error’,

‘code’: -96,

‘message’: ‘An unexpected error occurred. Please contact support.’}

Could you please help if I am doing something wrong?

Also I have install fyers_apiv2.

from urllib.parse import urlparse, parse_qs

import requests

from fyers_api import fyersModel

from fyers_api import accessToken

import traceback

import json

client_id = “******”

secret_key = “*******”

redirect_uri = “http://127.0.0.1:5000/login”

response_type = “code”

grant_type = “authorization_code”

state = “private”

nonce = “private”

app_id=“*******”

session=accessToken.SessionModel(client_id=client_id,

secret_key=secret_key,redirect_uri=redirect_uri,

response_type=response_type,

grant_type=grant_type)

response = session.generate_authcode()

input = {“fyers_id”:client_id,“password”:““,“pan_dob”:”*****”,“app_id”:app_id,“redirect_uri”:redirect_uri,“appType”:“100”,“code_challenge”:“”,“state”:“None”,“scope”:“”,“nonce”:“”,“response_type”:“code”,“create_cookie”:True}

headers = {

   "accept": "*/*",

   "accept-language": "en-IN,en-US;q=0.9,en;q=0.8",

   "content-type": "application/json; charset=UTF-8",

   "sec-ch-ua" :'"Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"',

   "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36",

}

result =requests.post(“https://api.fyers.in/api/v2/token”,

                      headers=headers, json=input, allow_redirects=True)

var = json.loads(result.content)

Hi @YxrGX6XIse,

Kindly share your Client ID in the DM. We will arrange a call back from the team.

Thanks!

Thanks, shared the client id in DM