Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stability issues? #48

Closed
sks316 opened this issue Nov 3, 2019 · 9 comments
Closed

Stability issues? #48

sks316 opened this issue Nov 3, 2019 · 9 comments

Comments

@sks316
Copy link

sks316 commented Nov 3, 2019

I'm adding a define command to my Discord bot, Mewtwo, using this API. Unfortunately, after attempting to define a word, the API sometimes stops responding with JSON for some minutes and sends a 404 page instead. This isn't an issue with the bot itself, as this issue is confirmed by opening the page in a web browser. I can't push an unstable command to the stable version of the bot, so I was wondering if you could look into what may be causing this.

@meetDeveloper
Copy link
Owner

@sks316 can you tell me the word and the language?

@sks316
Copy link
Author

sks316 commented Nov 3, 2019

It happens with pretty much any word, and the language is English.

@colinamurgatroyd
Copy link

Hi,
Is there any update on this? I use this in an app and have also noticed that I'm getting 404 responses about 60% of the time. The language is English and does not appear to be specific to any word. The 404 responses appear to be sporadic, so sometimes I get the JSON definition in the response coming back okay and at other times I get a 404 (for the same word). The problem can be reproduced using Postman and using a browser (I'm using Safari).

@meetDeveloper
Copy link
Owner

@colinamurgatroyd Let me check this in this weekend.

@meetDeveloper
Copy link
Owner

@colinamurgatroyd I fixed this, can you check.

@meetDeveloper
Copy link
Owner

@colinamurgatroyd I will soon be updating API with massive changes that will solve this and related issue completely.

@colinamurgatroyd
Copy link

colinamurgatroyd commented Jan 14, 2020 via email

Repository owner deleted a comment Jan 14, 2020
@meetDeveloper
Copy link
Owner

@colinamurgatroyd Will support earlier version also, but new version will have better structure for easy usage. You can look at this issue for more information #32

@meetDeveloper
Copy link
Owner

I have hosted API on AWS now, it won't have stability issues now.

This is the homepage. https://dictionaryapi.dev.

Way to query API has been changed a little:

Usage : The basic syntax of a URL request to the API is shown below:

https://api.dictionaryapi.dev/api/v1/entries/<--language_code-->/<--word-->

As an example, to get definition of English word hello, you can send request to

https://api.dictionaryapi.dev/api/v1/entries/en/hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants