There could be various reasons why the connection was being reset from the server side. Some possible reasons are:
Network connectivity issues: There could be network connectivity issues due to which the connection was being reset. This could be due to issues with the network adapter or network drivers, misconfigured network settings, or issues with the physical network cables.
Firewall or security settings: The firewall or security settings on the server could be blocking the connection to the Bank URL. This could be due to firewall rules or settings that block traffic on port 443, or other security settings that are preventing the server from making a connection.
Resource constraints: The server could be experiencing resource constraints, such as low memory, CPU usage, or disk space, which could be causing the connection to reset.
Application or service issues: There could be issues with the IIS-based API or the service that is calling the Bank URL, which could be causing the connection to reset. This could be due to bugs or other issues with the code, or issues with the configuration or setup of the service.
To further investigate the issue, you may need to review server logs and network traces to identify the cause of the connection reset.