Could not connect to endpoint error 500

we are facing this error in production , we’ve been using same code for 8 months .
url = “https://gw-fatoora.zatca.gov.sa/e-invoicing/core/invoices/reporting/single“
response : {‘httpCode’: ‘500’, ‘httpMessage’: ‘URL Open error’, ‘moreInformation’: ‘Could not connect to endpoint’}