Hi,
I get the following error when I click on Generate IRN button:
Any thoughts about what I am doing wrong?
Thanks
Jay
Exception:
Traceback (most recent call last):
File “/home/abcco/frappe-bench/apps/erpnext/erpnext/regional/india/e_invoice/utils.py”, line 899, in make_request
res = make_post_request(url, headers=headers, data=data)
File “/home/abcco/frappe-bench/apps/frappe/frappe/integrations/utils.py”, line 42, in make_post_request
return make_request(“POST”, url, **kwargs)
File “/home/abcco/frappe-bench/apps/frappe/frappe/integrations/utils.py”, line 34, in make_request
raise exc
File “/home/abcco/frappe-bench/apps/frappe/frappe/integrations/utils.py”, line 26, in make_request
frappe.flags.integration_request.raise_for_status()
File “/home/abcco/frappe-bench/env/lib/python3.8/site-packages/requests/models.py”, line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: for url: https://gsp.adaequare.com/enriched/ei/api/invoice
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/abcco/frappe-bench/apps/erpnext/erpnext/regional/india/e_invoice/utils.py”, line 1004, in generate_irn
res = self.make_request(“post”, self.generate_irn_url, headers, data)
File “/home/abcco/frappe-bench/apps/erpnext/erpnext/regional/india/e_invoice/utils.py”, line 907, in make_request
return self.make_request(request_type, url, headers, data)
File “/home/abcco/frappe-bench/apps/erpnext/erpnext/regional/india/e_invoice/utils.py”, line 909, in make_request
self.log_request(url, headers, data, res)
UnboundLocalError: local variable ‘res’ referenced before assignment