This is likely due to either API configurations or permissions not being set up properly.
Follow these steps to address the issue:
- Check if the Recommender API is enabled at project level
- Check if the following permissions are enabled in the IAM member associated with projects:
recommender.computeInstanceMachineTypeRecommendations.get
recommender.computeInstanceMachineTypeRecommendations.list
recommender.computeInstanceMachineTypeRecommendations.update
recommender.locations.get
recommender.locations.list