Closed atschutz closed 3 years ago
@atschutz Thanks for such detailed bug report 👍. I am looking into it, most probably it's an API limit, as right now, it's a free tier. I had asked the same questions on support, will update with the reply.
Same thing happens to me on Mac but I am also new to python.
UPDATE: I found out that the more specific the parameters are the more likely it is to have an error. For example with no parameters, it rarely happens. Perhaps the database where you are getting the words from is too small or does not have enough words with these specific restrictions. Either way the error message should be different.
Got the same issue.
Same thing with me
same
Same
The same error occurred on my Mac
Still having the error
same
@vaibhavsingh97 are you still planning on implementing a fix? A nice way would be to make an exception so the error can be handled, wait for a number of seconds then retry.
I had released a new version on PyPI (https://pypi.org/project/Random-Word/1.0.6/), this will fix recent issues.
Describe the bug After running a .py file that uses get_random_word() or get_random_words() multiple times (usually around 10 times), Error occurs and will continue to occur if user tries to run the file again.
To Reproduce Steps to reproduce the behavior:
Create a file named "randomWordTest.py" and fill it with the following:
In the command prompt, navigate to the file's location and run "python randomWordTest.py" A random word should appear.
repeat step 2 multiple times, around 10. Eventually, the following error will occur:
This error will continue to occur about 95% of the time whenever randomWordTest.py is run. Changing the file and then saving it seems to bring user back to step 1.
Expected behavior randomWordTest.py should return a random word every time.
Environment (please complete the following information):
Additional context I'm new to python, so there's a chance I'm doing something incorrectly. I seem to have followed all steps for installation and usage of the package correctly, though.