I am working on a vps server and i am runing django on iis server. I have a view which receives a link from user and crawl the website and return some information to user. I have a module which handle request stuffs and just import that in my view which i call it with the user link. I also check the request module directly, and it works fine. The problem is that when i try the procedure through django view as a user i got the following error:
ProxyError at /gathering
HTTPConnectionPool(host='127.0.0.1', port=62341): Max retries exceeded with url: http://www.sid.ir/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000021D6FF53EE0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))
From request module:
html_doc = requests.get('http://www.sid.ir').text
Actually, my problem can be down to using requests module inside django views, As i tried with just the above code inside a view function and again the same problem.