jonasschmedtmann / complete-javascript-course

Starter files, final projects, and FAQ for my Complete JavaScript course
https://www.udemy.com/the-complete-javascript-course/?couponCode=C3GITHUB10
15.69k stars 16.81k forks source link

The add recipe endpoint for the forkify project is returning a 500 status code #381

Closed Walexero closed 1 year ago

Walexero commented 1 year ago

I'm not able to implement the add recipe functionality because of the endpoint returning an error code. Is there a way to have this fixed anytime soon?

j-koziel commented 1 year ago

I quickly tested this in Postman (lets you quickly test an api) and I received the below result. As you can see it succeeded with my test data. I think that the API is in fact working. image

Below you can see the same error message that you were getting before but with a GET request instead of a POST request. This is probably why you were getting this message if you were testing this endpoint in the browser. image

Walexero commented 1 year ago

I have it fixed, it was more an issue in the code than the api