Then you need to catch the rejection and log the error
For example this you always assume the fetch succeeds, you have to catch to catch an error.
You are also missing await and .then (which sure you can do but it can be confusing)
You’ll have to update your code to catch and log the error