Unexpected end of JSON input
sundaram2021 opened this issue · comments
Sundaram Kumar Jha commented
i am fetching user data from localhost,
in case i am using res.text() then errors are gone but the data is undefined
Md. Rumon Khan commented
use res.json()
Sundaram Kumar Jha commented
use
res.json()
yes I have used this then , it worked .
but, I forgot to close this issue