Why do we want to assign an empty object to `req` if the setting API call fails? It seems that we should let the error fire in the next line instead.