Open Dhyanesh97 opened 3 years ago
please find below analysis after debugging the code
=> STSAuthUrl (https://sts.XXXXXX.com/adfs/services/trust/2005/usernamemixed) is picked and code is trying to get host by name as below
socket.gethostbyname("sts.XXXXXXXX.com")
On windows 10 machine it is running without any issues because gethostbyname is returning some value but in docker container and linux machine it is failing with the error mentioned below
socket.gaierror: [Errno -2] Name or service not known
OS
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
The gethostbyname method is called 4 times in a row
Any help appreciated.
Below code is working locally in windows machine. But when I deploy it as a docker container it gives below issue as "Name or service not known" for dns_host while authenticating.
Do I need any additional setup for running the application as docker container ?
Code:
Error and Stack Trace: