My daily note triggers a templater user script that makes a call to the Quotable API. For some reason, since this morning, it doesn’t get through and I get a
ERR_CERT_DATE_INVALID error.
Anyone else has this problem? Any ideas?
What I’m trying to do
Fetch a quote from api.quotable.io through a Templater script that always worked until now. Here it is:
async function randomQuote() {
const response = await fetch("https://api.quotable.io/random");
const quote = await response.json();
return `> [!QUOTE] ${quote.author} \n> ${quote.content}`;
}
module.exports = randomQuote;
Things I have tried
Checked that the problem wasn’t with the SSL certificate or with my system clock. It seems that it has do to with the way the SSL certificate is checked from within Obsidian.