restored InvalidRequestException from Functions.get