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

KeyError: 'results' #15

Closed
divamgupta opened this issue Aug 7, 2015 · 9 comments
Closed

KeyError: 'results' #15

divamgupta opened this issue Aug 7, 2015 · 9 comments

Comments

@divamgupta
Copy link

I installed dom using pip in OS X.

$ dom --tld hello
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/dom", line 7, in
Domain().main()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/domainr/core.py", line 83, in main
print self.search(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/domainr/core.py", line 39, in search
data = self.parse(json_data.content, env)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/domainr/core.py", line 48, in parse
results = data['results']
KeyError: 'results'

@maximilianschmitt
Copy link

same error here!

$ python --version
Python 2.7.10

@amingilani
Copy link

gilani@debris  ~  python --version
Python 2.7.6
 gilani@debris  ~  uname -a        
Linux debris 3.16.0-46-generic #62~14.04.1-Ubuntu SMP Tue Aug 11 16:27:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
 gilani@debris  ~  dom exampledomain
Traceback (most recent call last):
  File "/usr/local/bin/dom", line 7, in <module>
    Domain().main()
  File "/usr/local/lib/python2.7/dist-packages/domainr/core.py", line 83, in main
    print self.search(args)
  File "/usr/local/lib/python2.7/dist-packages/domainr/core.py", line 39, in search
    data = self.parse(json_data.content, env)
  File "/usr/local/lib/python2.7/dist-packages/domainr/core.py", line 48, in parse
    results = data['results']
KeyError: 'results'

@jevets
Copy link

jevets commented Sep 21, 2015

+1 same errors

bigtoe:~ steve$ dom example
Traceback (most recent call last):
  File "/usr/local/bin/dom", line 5, in <module>
    pkg_resources.run_script('dom==0.7', 'dom')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 492, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1357, in run_script
    exec_(script_code, namespace, namespace)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 47, in exec_
    exec("""exec code in globs, locs""")
  File "<string>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/dom-0.7-py2.7.egg/EGG-INFO/scripts/dom", line 7, in <module>

  File "build/bdist.macosx-10.10-intel/egg/domainr/core.py", line 83, in main
  File "build/bdist.macosx-10.10-intel/egg/domainr/core.py", line 39, in search
  File "build/bdist.macosx-10.10-intel/egg/domainr/core.py", line 48, in parse
KeyError: 'results'
bigtoe:~ steve$ python --version
Python 2.7.10

@vijaiaeroastro
Copy link

I installed the package using pip and got the same error.
Python 2.7.10 :: Continuum Analytics, Inc.

@kevinchabreck
Copy link

+1 same issue here with Python 2.7.9

@alladinian
Copy link

Apparently the cliend_id has been revoked by Domainr (I got this by printing the data in parse function):

{'message': 'unauthorized: disabled client ID'}

@mylylyl
Copy link

mylylyl commented Jan 3, 2016

+1 same error on ubuntu 14.04 lts server
py 2.7.9

@seanlane
Copy link
Collaborator

seanlane commented Feb 2, 2016

For anyone interested, I've forked and updated this project. It's been submitted as Pull Request #18, but in the meantime it can be downloaded and installed from here: https://github.com/seanlane/dom

It requires getting a free (but requires a credit card) API key from Mashape or contacting partners@domainr.com for a client id, as described in this GitHub comment: UltrosBot/Ultros-contrib#29 (comment)

Still need an API key as described in the README, but this repo is now updated.

@seanlane
Copy link
Collaborator

seanlane commented Feb 2, 2017

Fixed as part of PR's #18, #21, and #22. Closing.

@seanlane seanlane closed this as completed Feb 2, 2017
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

9 participants