Without a promise rejection handler, chrome will asynchronously generate a rejection reason that does not affect any JavaScript process, just prints the console reason. If you get annoyed with this, you need to add a handler, for example. Promise.reject(reason).catch(reason => {}) .
UPDATE: Why is the error occurring? This may be because a failure is usually considered an exception (error).
PS Your "question" looks like feedback, not a question. I personally prefer to consider the reason as a mistake.
source share