catch error on router: Unable to parse resource name ""