Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiPingSocketError while django testing app development on local server #33

Open
siddeshpawar opened this issue May 4, 2020 · 0 comments

Comments

@siddeshpawar
Copy link

After manage.py runserver getting the following error.
I have created a data model from where I am fetching the value of the switch_ip in the view function and then calling the script named as ping.py with the function named as job. And in ping.py I am using multiping. But facing the below error.

10.255.42.123
hello
Internal Server Error: /network_monitoring
Traceback (most recent call last):
File "C:\Users\sidde\AppData\Local\Programs\Python\Python38\lib\site-packages\multiping_init_.py", line 104, in init
addr_info = socket.getaddrinfo(d, None)
File "C:\Users\sidde\AppData\Local\Programs\Python\Python38\lib\socket.py", line 834, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\sidde\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\sidde\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\sidde\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\handlers\base.py", line 113, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\sidde\PycharmProjects\ether_discovery_project\ether_discovery_project\ether_discovery\views.py", line 50, in network_monitoring
a=ping.job(switch_ip_a2)
File "C:\Users\sidde\PycharmProjects\ether_discovery_project\ether_discovery_project\python_scripts\ping.py", line 18, in job
mp = MultiPing(IP)
File "C:\Users\sidde\AppData\Local\Programs\Python\Python38\lib\site-packages\multiping_init
.py", line 135, in init
raise MultiPingSocketError("Cannot lookup '%s'" % d)
multiping.MultiPingSocketError: Cannot lookup '1'
[04/May/2020 17:09:14] "GET /network_monitoring HTTP/1.1" 500 88939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant