📅  最后修改于: 2022-03-11 15:03:26.194000             🧑  作者: Mango
//This error occures when you try to print a non resolved promise
// Example the following code while lead to the error
const res = await fetch('some_url/');
console.log(res.json());
// Correct way
const res = await fetch('some_url/');
const json = await res.json();
console.log(json);