Skip to content
Advertisement

Tag: api

Get the id of an object in a json request? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago. Improve this question So I have to get the first object of this list: } I don’t know beforehand the IDs [‘2489’] and

Getting an array of Promises after async await

i’m trying to create an array of the daily forecast mapping over an array with cities. I’m trying to map over the array of the cities making an api call for each one of them once the page loads. I keep on getting an array of Promises such as this : Favorite Page component: Service with the api call :

POST net::ERR_NAME_NOT_RESOLVED

I’m trying to create a simple web application form. It requires the user to input their information, and click submit which ideally would hit an api and store the information somewhere like dynamodb. I have this code which is returning a response error POST net::ERR_NAME_NOT_RESOLVED For the life of me, I can’t figure out what’s wrong here… It references the

Advertisement