I have code running on a node server. I ported it to GCF. When I run the port, all things seem to work until I make request to URL. It times out.
If I comment out the request() call, the code exits as expected. I've searched and searched, but I cannot find a solution to the issue. Any help would be appreciated?
Is there some configuration setting in GCF that I am missing that is preventing me from calling out to a service outside of GCP?
options = {
url: `${id_url}&title=${title}&artist=${artist}&album=${album}`
};
request(options, function (error, tresp) {
if (error || tresp.statusCode !== 200) {
console.error('Error from TuneIn:', tresp.statusCode);
}
});
Any ideas?