beanboi7 / yomomma-apiv2

REST-API using FastAPI for Python that gives a 'yo momma' joke
https://yomomma-api.herokuapp.com/
MIT License
71 stars 15 forks source link

API returns application error #8

Open BamBoozledMC opened 2 years ago

BamBoozledMC commented 2 years ago

Your API isn't working and is returning an error when i make a request. image image

Would help if you could fix, thanks ;)

vdesmond commented 2 years ago

Can you check again, it works for us.

dd900 commented 2 years ago

There seems to be an issue with the api. I'm getting the same error as the user above. It's been down since the 25th of September.

BamBoozledMC commented 2 years ago

There seems to be an issue with the api. I'm getting the same error as the user above. It's been down since the 25th of September.

Hey there @dd900, Due to the API being unstable, I created an offline version that just parses the jokes.json file. Here is some example code if you're interested.

Make sure you download jokes.json from the repo

const mumjokes = require('./jokes.json')
let mumjoke = mumjokes[Math.floor(Math.random() * mumjokes.length)]
console.log(mumjoke)