Today it started sending this message, idk why. The code is from my apps scripts.
function codigo2() {
var url = 'https://rest.coinapi.io/v1/exchangerate/BTC/USD';
var hoja = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Hoja 2');
var apiKey = '';
var options = {
headers: {
"X-CoinAPI-Key": apiKey
}
};
var response = UrlFetchApp.fetch(url, options);
var data = JSON.parse(response.getContentText());
hoja.appendRow([data.rate]);
}
And the response error:
Exception: Request failed for https://rest.coinapi.io returned code 550. Truncated server response: {
"error": "You requested specific single item that we donu0027t have at this moment."
} (use muteHttpExceptions option to examine full response)
codigo2 @ A Recolector.gs:11
I try to search for doc but my code level in this type of things is to low, and chat didnt give me that much help.