I have got a Python/Django Web application hosted in AWS. The app attempts to make a call to this API "https://api.refinitiv.com/discovery/searchlight/v1/" using Python package "refinitiv-data==1.1.0".
The application works perfectly fine running locally in my development machine. Unfortunately, when deployed to AWS, I am getting following error..
An error occurred while requesting URL('https://api.refinitiv.com/auth/oauth2/v1/token').
ConnectError('[Errno 104] Connection reset by peer')
[Error 0 - None] [Errno 104] Connection reset by peer
Session is not opened. Can't send any request
Here is my code,
Note: settings.SEARCHLIGHT_URL = "https://api.refinitiv.com/discovery/searchlight/v1/"
Any pointer would be much appreciated? Is it something to do with our corporate Firewall?