While Creating E-invoice "RecursionError: maximum recursion depth exceeded"

while generating e-invoice or creating new customer using GSTN, i am getting this issue.

App Versions

{
	"erpnext": "14.34.1",
	"frappe": "14.44.0",
	"hrms": "14.10.0",
	"india_compliance": "14.15.0",
	"payments": "0.0.1",
}

Route

Form/Sales Invoice/1206

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 94, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 47, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1620, in call
    return fn(*args, **newargs)
  File "apps/india_compliance/india_compliance/gst_india/utils/e_invoice.py", line 130, in generate_e_invoice
    raise e
  File "apps/india_compliance/india_compliance/gst_india/utils/e_invoice.py", line 100, in generate_e_invoice
    result = api.generate_irn(data)
  File "apps/india_compliance/india_compliance/gst_india/api_classes/e_invoice.py", line 71, in generate_irn
    result = self.post(endpoint="invoice", json=data)
  File "apps/india_compliance/india_compliance/gst_india/api_classes/base.py", line 77, in post
    return self._make_request("POST", *args, **kwargs)
  File "apps/india_compliance/india_compliance/gst_india/api_classes/base.py", line 168, in _make_request
    raise e
  File "apps/india_compliance/india_compliance/gst_india/api_classes/base.py", line 130, in _make_request
    response = requests.request(method, **request_args)
  File "env/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "env/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "env/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "env/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
  File "env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 403, in _make_request
    self._validate_conn(conn)
  File "env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1053, in _validate_conn
    conn.connect()
  File "env/lib/python3.10/site-packages/urllib3/connection.py", line 400, in connect
    self.ssl_context = create_urllib3_context(
  File "env/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 312, in create_urllib3_context
    context.options |= options
  File "/usr/lib/python3.10/ssl.py", line 620, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  File "/usr/lib/python3.10/ssl.py", line 620, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  File "/usr/lib/python3.10/ssl.py", line 620, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  [Previous line repeated 477 more times]
RecursionError: maximum recursion depth exceeded

Request Data

{
	"type": "POST",
	"args": {
		"docname": "1206"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/india_compliance.gst_india.utils.e_invoice.generate_e_invoice"
}

Response Data

{
	"exception": "RecursionError: maximum recursion depth exceeded"
}

Looks like there could be issues with your server configurations or dependencies installed.

However, this is not because of India Compliance App.

Yes, looks like a configuration issue, not really related to India Compliance.

Thank you for replay

Hello @ganureddy

i have same error in my custom app, If you have solution for this, then please give solution