[api] raising error against no user in api now