The fetch method requires a URL as a parameter used as a resource to fetch. This action returns a promise that you can use then() and catch() methods to handle it. At this point the promise becomes a response object. The response object is filled with many useful properties which can be used to inspect the response.
If there is a network error it usually means theres a permissions issues causing the promise to be rejected. This type of error happens when a user is offline or DNS lookup failure. One error message that i have seen many time is “Errr: internet server error” , This lets me know whether or not my HTTP response’s response is in range. Error messages is a great place to begin trouble shooting your code.