Crash on particular IP address
See original GitHub issueCrash of latest ipwhois 1.1 on IP=122.215.34.1
:
import ipwhois
owner_info = ipwhois.IPWhois('122.215.34.1').lookup_rdap(depth=0)
print owner_info
Error log:
File "/usr/bin/XXX", line XXX, in XXX
return ipwhois.IPWhois(ip).lookup_rdap(depth=0)
File "/usr/lib/python2.7/site-packages/ipwhois/ipwhois.py", line 321, in lookup_rdap
rate_limit_timeout=rate_limit_timeout
File "/usr/lib/python2.7/site-packages/ipwhois/rdap.py", line 780, in lookup
result_net.parse()
File "/usr/lib/python2.7/site-packages/ipwhois/rdap.py", line 554, in parse
self.vars[v] = self.json[v].strip()
AttributeError: 'NoneType' object has no attribute 'strip'
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What's an IP Conflict and How Do You Resolve It? - MakeUseOf
What is an IP address conflict? Learn how to fix the problem if two devices have the same IP address on your network....
Read more >How to fix and resolve IP address conflict - ManageEngine
Step 4: Click Properties, and double-click the Internet Protocol Version 4 (TCP/IPv4) field. Step 5: Select the Obtain an IP address automatically and...
Read more >Computer crashes when setting up a Static IP Address.
Hey, so im trying to set up a Static IP Address following the instructions from www.PortForward.com. My router is a D-Link WBR-1310 and...
Read more >Linksys Official Support - Resolving IP address conflicts
If there are cases of IP address conflicts in the network, then the administrator needs to re-assign unique static IP addresses to the...
Read more >Wifi crashes after trying to connect to a specific wifi
I've uninstalled the network adapter and restarted my computer, I've reconfigured the IP address, I took my computer to my schools wifi ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve got this problem too. With ip 1.5.186.0 and many other from JPNIC. They have one bad field in their output
'type': None,
wich crash parsingI make small local fix in ipwhois.rdap in _RDAPNetwork.parse (line 556)
pull request https://github.com/secynic/ipwhois/pull/260