How can i get errors value inside Promise object which return from Fetch Api?
I have my fetch request like this. fetch(deafaultUrl + '/v1/users/', { headers: { 'Content-Type': 'application/json' }, method: "POST", body: JSON.stringify(userInfoParams) }) .then(function(response) { console.log(response); console.log(response.json()); // not working never go into this function response.json().then(function(value) { console.log('access promise'); console.log(value); // "Success" }); if (response.status !== 200 && response.status !== 201) { throw new Error("Bad response from server"); } }) .then(function(json){ console.log("succeed json re"); console.log(json); dispatch