DEV Community

Discussion on: Undefinend response with axios

Collapse
 
savagepixie profile image
SavagePixie

Are you sure that the response object has a property named data? Try logging the whole response and see what you get.

Collapse
 
hoxtygen profile image
Idowu Wasiu

By default axios response have a data property where all response are stored. Unless things have changed from the last time I used it. As you said, the whole response object should be logged to see its content.