I have been experimenting with the fetch api, and it's still not clear when it is rejected. For example when I try the following: fetch("https://stackoverflow.com/")
it is rejected whereas if i insert a completely random text like "aoishoaisoab" it is resolved eventhough such URL doesnt exists. I have read that it is only rejected if there is a network error. Then how come it is rejected?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…