API Gateway: License checking failed when invoking the method