Hi
I have configured the GST E-Invoice. I am Running ERP Next software from localhost Server.
When I am Submitting the Sales invoice During E-Invoice Generation shows following error.
ERROR:
Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
request.js:457 Traceback (most recent call last):
File “env/lib/python3.10/site-packages/urllib3/connection.py”, line 174, in _new_conn
conn = connection.create_connection(
File “env/lib/python3.10/site-packages/urllib3/util/connection.py”, line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/lib/python3.10/socket.py”, line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “env/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 715, in urlopen
httplib_response = self._make_request(
File “env/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 404, in _make_request
self._validate_conn(conn)
File “env/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 1058, in _validate_conn
conn.connect()
File “env/lib/python3.10/site-packages/urllib3/connection.py”, line 363, in connect
self.sock = conn = self._new_conn()
File “env/lib/python3.10/site-packages/urllib3/connection.py”, line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fd9bc20f310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
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 799, in urlopen
retries = retries.increment(
File “env/lib/python3.10/site-packages/urllib3/util/retry.py”, line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘asp.resilient.tech’, port=443): Max retries exceeded with url: /ei/api/invoice (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7fd9bc20f310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/india_compliance/india_compliance/gst_india/api_classes/base.py”, line 161, in _make_request
raise e
File “apps/india_compliance/india_compliance/gst_india/api_classes/base.py”, line 131, 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 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘asp.resilient.tech’, port=443): Max retries exceeded with url: /ei/api/invoice (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7fd9bc20f310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 95, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, 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 1608, in call
return fn(*args, **newargs)
File “apps/india_compliance/india_compliance/gst_india/utils/e_invoice.py”, line 191, in generate_e_invoice
raise e
File “apps/india_compliance/india_compliance/gst_india/utils/e_invoice.py”, line 128, in generate_e_invoice
result = api.generate_irn(data)
File “apps/india_compliance/india_compliance/gst_india/api_classes/e_invoice.py”, line 77, in generate_irn
result = self.post(endpoint=“invoice”, json=data)
File “apps/india_compliance/india_compliance/gst_india/api_classes/base.py”, line 81, in post
return self._make_request(“POST”, *args, **kwargs)
File “apps/india_compliance/india_compliance/gst_india/api_classes/base.py”, line 164, in _make_request
log.output = response_json.copy()
AttributeError: ‘NoneType’ object has no attribute ‘copy’
Please any one help me on this. I tried Reinstalling the APP but it doesn’t works