try(...) catch{...} can capture this error & suggest use async and await instead promise to reduced the amount of code <img width="1288" alt="WeChat751a5077f634203f705d292564394d37" src="https://user-images.githubusercontent.com/31037167/192412862-42e99da5-e387-4749-bf22-2c289e591a75.png">