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

Module fails: No result found #27

Closed Xevion closed 3 years ago

Xevion commented 5 years ago

Describe the bug Module is completely broken for me. Is it for others?

To Reproduce

>>> from random_word import RandomWords
>>> r = RandomWords()
>>> r.get_random_words()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Xevion\AppData\Local\Programs\Python\Python36\lib\site-packages\random_word\random_word.py", line 112, in get_random_words
    "Error occured, No result found. If you think this was a mistake than raise issue at {}".format(self.issue_url))
Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues
>>> r.get_random_word()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Xevion\AppData\Local\Programs\Python\Python36\lib\site-packages\random_word\random_word.py", line 60, in get_random_word
    "Error occured, No result found. If you think this was a mistake than raise issue at {}".format(self.issue_url))
Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

Expected behavior Normal functionality.

Environment (please complete the following information):

Additional context Had just installed it a second ago. Sorry if it's something dumb, it said to ask here if it's an error, and I think it is...?

vaibhavsingh97 commented 5 years ago

Hi @Xevion, Thanks for reporting. I will look into it and update the module. You may expect an update in a week. Thanks for using my package

Scott-St commented 5 years ago

Same issue here.

The response code is returning 403.

AoifeMarieDoherty commented 5 years ago

Same here, except one thing to note is that it works (for me) occassionally? For example once every five minutes or so it will work, but only if I do not run it for about 5 minutes once I get the error?

Scott-St commented 5 years ago

To resolve this request a wordnik API key then change the API key found in config.py of the module.

vaibhavsingh97 commented 5 years ago

Hi,

This is my personal API key i uploaded on pypi if someone needs help then they can use my package. It got hit, will add an option to use their personal and key and will add more options to fetch random word. I am quite late to update the package due to some of my personal commitment, but will update this package with relevant fix in upcoming days.

On Fri, 30 Aug, 2019, 9:46 PM Scottst, notifications@github.com wrote:

To resolve this request a wordnik API key then change the API key found in config.py of the module.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vaibhavsingh97/random-word/issues/27?email_source=notifications&email_token=ACCNK2SIRTP2UWI75C75R5LQHFBVZA5CNFSM4IKIKPAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SDNJY#issuecomment-526661287, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCNK2WFH6BH3JSD2DP3O6TQHFBVZANCNFSM4IKIKPAA .

juan-solorio-program commented 4 years ago

Sadly I am experiencing the same issue. Here's the error I get:

Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

vaibhavsingh97 commented 3 years ago

closing this as a duplicate of https://github.com/vaibhavsingh97/random-word/issues/44