https://github.com/doemser/js-error-handling-fetch-solution
https://github.com/doemser/js-error-handling-fetch-solution
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/doemser/js-error-handling-fetch-solution
- Owner: doemser
- Created: 2024-04-18T12:18:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T12:18:37.000Z (about 2 years ago)
- Last Synced: 2024-10-16T19:52:36.066Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fetch
This application fetches information from the https://reqres.in API, but some buttons are trying to retrieve information from problematic URLs.
Handle the corresponding exceptions in the JS code and display an error message in the `.error` element accordingly.
Don't forget to clear the error if the fetch operation is successful!