vaibhavsingh97 / random-word

This is a simple python package to generate random english words
https://pypi.org/project/random-word/
MIT License
123 stars 25 forks source link

API key expired? #13

Closed calmsleeper closed 3 years ago

calmsleeper commented 5 years ago

Describe the bug I was using this package with a discord bot to generate random words and it worked fine up until last Friday. The error it throws points to line #24 in random_word.py which tells me "API key either expired or not working. Please raise issue at..."

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Call function '....'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots https://i.imgur.com/aVmmdEx.png

Environment (please complete the following information):

Additional context Add any other context about the problem here.

vaibhavsingh97 commented 5 years ago

@calmsleeper Thanks for opening the issue. I am looking into it and soon update the package with a relevant fix.

iamhazel commented 5 years ago

Having the same exact problem. My code worked properly in my one project, but then I copied it over to another and started getting that error.

choonkiattay commented 5 years ago

hi @vaibhavsingh97 I also encounter the same problem.

Another issue I found when API error: RandomWords class init line 23, returns an error "TypeError: exceptions must derive from BaseException". You may change the line to raise ValueError("API key either expired or not working. Please raise issue at {}".format(self.issue_url))

calmsleeper commented 5 years ago

@vaibhavsingh97 Thank you for the fix the RandomWord package is pulling dictionary words as of today (3/10/19)

vaibhavsingh97 commented 5 years ago

@calmsleeper @choonkiattay Please update the package to the latest version. I had included the latest fix.

vaibhavsingh97 commented 3 years ago

I had released a new version on PyPI (https://pypi.org/project/Random-Word/1.0.6/), this will fix recent issues.