I need to load async from same server running my React, but this doesn't work ( if I set path from remote it works), error is Invalid URI :
request.get('statefulsetv.yaml', function (error, response, body) {
            console.log(error);
            if (!error && response.statusCode == 200) {
                var data = yaml.load(body);
                // console.log(data);
                containers = data.spec.template.spec.containers;
                self.setState({ containers_state: containers });
                // Continue with your processing here.
            }
        });
