So i have this project that i stop working on it months ago and intend to continue currently, and i got some errors.
I have this code
const spaceshipUri = await nftContract.methods.tokenURI(id).call({from:ethAddress});
logger.info("uri "+spaceshipUri);
await Moralis.Cloud.httpRequest({
url: spaceshipUri,
}).then(function(httpResponse) {
logger.info(httpResponse.text);
spaceshipData = httpResponse.data;
}, function(httpResponse) {
logger.error('Request failed with response code ' + httpResponse.status);
});
logger.info("data "+spaceshipData);
this code
logger.info("uri "+spaceshipUri);
return this URI https://cv11cevjegiq.usemoralis.com:2053/server/files/jJGj0os96A7V2Wg0FUR1m43ouDEAOb2LJX5xhz0u/9acdd06e97c394c8445ddd3f7947d9a3_Destructor.json
but seems i can’t open that URI
logger.info("data "+spaceshipData);
this return undefined.
it worked before, anyone can help me what is wrong?
thanks.