meetDeveloper / freeDictionaryAPI

There was no free Dictionary API on the web when I wanted one for my friend, so I created one.
https://dictionaryapi.dev/
GNU General Public License v3.0
2.66k stars 267 forks source link

Stability issues? #48

Closed sks316 closed 4 years ago

sks316 commented 5 years ago

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 commented 5 years ago

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

sks316 commented 5 years ago

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

colinamurgatroyd commented 4 years ago

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 commented 4 years ago

@colinamurgatroyd Let me check this in this weekend.

meetDeveloper commented 4 years ago

@colinamurgatroyd I fixed this, can you check.

meetDeveloper commented 4 years ago

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

colinamurgatroyd commented 4 years ago

Thanks for letting me know. And thanks for the reply you sent just before Xmas - apologies for not acknowledging that at the time. Will the changes be backward compatible?

On Tue, 14 Jan 2020 at 08:53, meetDeveloper notifications@github.com wrote:

@colinamurgatroyd https://github.com/colinamurgatroyd I will soon be updating API with massive changes that will solve this and related issue completely.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/meetDeveloper/googleDictionaryAPI/issues/48?email_source=notifications&email_token=ALLLMVGDE3DPPR7VWXJQH7LQ5V4P5A5CNFSM4JIJQHDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI3ZXAY#issuecomment-574069635, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLLMVDANNXODSOUGVZQSL3Q5V4P5ANCNFSM4JIJQHDA .

meetDeveloper commented 4 years ago

@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 commented 4 years ago

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