API returning error and also CORS error
I am trying to use this API, which I found on the website https://random-word-api.herokuapp.com/. The objective is to return a random word for my wordle game. The problem is that it is not returning the grid anymore, when I try to click in any of the options it returns some errors on the console, as shown in the image below. I spotted that the undefined error happens probably because there is no word to generate the grids. I found it weird that it is returning a CORS error, for being backend stuff, and tried to look into the API's website and entering in the https://random-word-api.herokuapp.com/word to see what happens, and it is returning a java error
15 Replies
here is the repo:
https://github.com/LeonCelestino/Wordle-Game
GitHub
GitHub - LeonCelestino/Wordle-Game: A wordle game.
A wordle game. Contribute to LeonCelestino/Wordle-Game development by creating an account on GitHub.
like I said in #chit-chat, this is not something you can fix or that you did wrong. You will have to find a different API to use
that is it then?
so sad the API died :(
the CORS error is honestly probably caused by the same
tbh I'm thinking in learning backend to make my own api for this game
not a bad idea. This kind of API is an excellent beginner project for learning how to build APIs
I found a new API. bug fixed
https://random-word.ryanrk.com/api/en/word/random/?length=6
nice!
Now I am having a trouble with deployment on vercel
where do I ask?
;-;
nvm I fixed it too
#os-and-tools has a hosting tag
thx
You can also try to contact the api peeps(if they’re active) and let them know there’s a Cors error . I had to do that with a Stephan king api last month and they fixed it
why do u want the api to return a grid?
it is not the api that returns a grid