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

Lots of error messages like this #31

Closed bitcoinmeetups closed 3 years ago

bitcoinmeetups commented 4 years ago

Nice package. Except these error messages pretty often:

'snortle'

r.get_random_word() 'lophyropoda' r.get_random_word() 'organolithium' r.get_random_word() 'foresightful' r.get_random_word() 'Vesuvius' r.get_random_word() 'creels' r.get_random_word() 'knockdowns' r.get_random_word() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/site-packages/random_word/random_word.py", lin e 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

stuaxo commented 4 years ago

The same thing happened to me, it is the Wordnik API that is returning that message.

TBH if I had known this calls an external API to get it's random word I would have not used this (in fact I cannot use this for work projects).

Puhalenthi commented 4 years ago

Same Here

juan-solorio-program commented 4 years ago

I'm experiencing the same issue. Here's the error message 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

stuaxo commented 4 years ago

@juan-solorio-program I would consider finding a random word generator that doesn't use an API to get its random words, apart from this error, it's hugely wasteful to make an HTTP request to do this, and you will hit rate limiting errors like this.

vaibhavsingh97 commented 3 years ago

Thanks for reporting the issue, will update the package, closing it as a duplicate of https://github.com/vaibhavsingh97/random-word/issues/44