title: How can i get errors value inside Promise object which return from Fetch Api?
body: <p>I have my fetch request like this.</p>
  
  <pre><code>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 &amp;&amp; response.status !== 201) {
                  throw new Error("Bad response from server");
              }
          })
          .then(function(json){
  
              console.log("succeed json re");
              console.log(json);
              dispatch(update_user(json));
  
          }) 
  </code></pre>
  
  <p>So when i console this <code>console.log(response.json());</code></p>
  
  <p>I got this</p>
  
  <p><a href="https://i.stack.imgur.com/FCEHM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FCEHM.png" alt="enter image description here"></a></p>
  
  <p>But it seems like Promise function doesnot workout.</p>
  
  <p>So how can i get errors Object inside [[PromiseValue]]?</p>
  
  <p>Thanks!</p>