Error: Unable to connect to the database. could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host “10.120.8.136” and accepting
TCP/IP connections on port 5432?
could not connect to Database
I am using VPN and trying to connect to postgre database through a scrapy spider script. It is showing the above output. Sometimes when i am trying to scrap data for a website and trying to connect to database with VPN the code is not at all running. It is just lagging time. How can i fix this issue ?
I tried to run the scrapy script without VPN then it was able to scrap web site information but it was unable to connect to database because the postgre database server is only reachable with VPN.
Vishwakarma Parmeshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.