Replace outdated default category for api request; improve error handling