Hi,
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
"
![connection-error.png](https://us.v-cdn.net/6038239/uploads/attachments/16998-connection-error.png)
Here is my code,
Note: settings.SEARCHLIGHT_URL = "https://api.refinitiv.com/discovery/searchlight/v1/"
![sample-code.png](https://us.v-cdn.net/6038239/uploads/attachments/16999-sample-code.png)
Any pointer would be much appreciated? Is it something to do with our corporate Firewall?
Many Thanks,
Milan