E Invoice Error - UnboundLocalError: local variable 'res' referenced before assignment

Did you set the client ID and client secret (to be sourced from Adaequare) in e-Invoice settings or site_config.json? Refer for detailed instructions:
[E-Invoicing][India][Guide] Setup Adequare GSP's E-Invoicing Services in ERPNext

The 403 Client Error you’re seeing is generally because you were Forbidden from accessing the resource at the specified endpoint.