Open sensay-nelson opened 6 years ago
I've tried using dom with both OSX, Ubuntu, and a variant of Arch Linux, each with Python 2 & 3, and all have worked fine. I ran into some other issues, but nothing related to a KeyError such that 'status' didn't exist within the data object.
If you are familiar with Docker, the following Dockerfile can be used to show a simple testing environment, which the command docker build /path/to/Dockerfile
:
FROM ubuntu:16.04
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y python python-pip
ENV DOMAINR_MASHAPE_KEY={replace with your key as needed}
RUN pip install dom
RUN dom --ascii zachwill
The output I get from this is as expected:
X z.ac
X za.ch
X zachwill.com
A zachwill.net
A zachwill.org
A zachwill.us
I also have this issue with both python2 and 3 on Debian 9
Traceback (most recent call last):
File "/usr/local/bin/dom", line 7, in <module>
Domain().main()
File "/usr/local/lib/python3.5/dist-packages/domainr/core.py", line 127, in main
status = self.status(args)
File "/usr/local/lib/python3.5/dist-packages/domainr/core.py", line 59, in status
data = Domain.parse_status(json_data.content, env)
File "/usr/local/lib/python3.5/dist-packages/domainr/core.py", line 79, in parse_status
status = data['status']
KeyError: 'status'
Would you be able to debug the script and print out the value for the data
object from line 79? I wonder if there's some error that isn't being caught.
This error may be caused by wrong api key, I solved it by correct my api key.
Using ubuntu, I'm seeing the following error when doing dom zachwill.com
replacing:
with:
works, but the output is ugly.
I believe the issue is the syntax highlighting is specific to osx terminal. may want to put that in the docs.