Problem getting Daily Quote Template to work on Mac

Things I have tried

I have a mix of Macs and Windows computers that I use Obsidian for. I should also mention that I have only been using Obsidian for about a month.
I have a template for my daily notes that creates some links and gets the daily quote.
Template looks like this:

<% tp.file.creation_date(“dddd Do MMMM YYYY”) %>

[[<% tp.date.now(“YYYY-MM-DD”, -1) %>|Previous Day]] <== [[~Daily Notes 2022| Daily Notes]] | [[~ My Homepage| Home]]==> [[<% tp.date.now(“YYYY-MM-DD”, 1) %>|Next Day]] >> #dailynote #personal

<% tp.web.daily_quote() %>

I am using Templater to retrieve the various date values (this is the only way I have been able to figure out how to do what I want to do.)

When I try to run the Templater template on a Windows PC, it works fine. When I try to run it on a Mac, I get the following error: “Template parsing error, aborting. Check console for more information”

Would appreciate any assistance anyone can provide.

Thanks.

What I’m trying to do

What does the console say as the error message?

To check for errors, first open the developer tools by pressing Ctrl-Shift-I on Windows/Linux or Cmd-Opt-I on macOS, and then go to the “Console” tab. If you want to save the error to a log file, you can right click on the error and choose “Save as…”.

The API used to provide the quotes is currently offline for me, I would guess that that is the problem.

I think I did this right :slight_smile:

Templater Error: Template parsing error, aborting.
Failed to fetch
log_error @ plugin:templater-obsidian:82
eval @ plugin:templater-obsidian:103
rejected @ plugin:templater-obsidian:57
Promise.then (async)
step @ plugin:templater-obsidian:62
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
errorWrapper @ plugin:templater-obsidian:98
eval @ plugin:templater-obsidian:3766
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
append_template_to_active_file @ plugin:templater-obsidian:3759
onChooseItem @ plugin:templater-obsidian:2361
e.onChooseSuggestion @ app.js:1
e.selectSuggestion @ app.js:1
t.useSelectedItem @ app.js:1
t.onSuggestionClick @ app.js:1
s @ enhance.js:1

This was the last entry in the console.
The one before that is:

GET https://api.quotable.io/random net::ERR_NAME_NOT_RESOLVED
eval @ plugin:templater-obsidian:2693
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
getRequest @ plugin:templater-obsidian:2692
eval @ plugin:templater-obsidian:2702
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
eval @ plugin:templater-obsidian:2701
eval @ VM202:16
eval @ plugin:templater-obsidian:3612
render @ plugin:templater-obsidian:3610
renderAsync @ plugin:templater-obsidian:3626
eval @ plugin:templater-obsidian:3635
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
parse_commands @ plugin:templater-obsidian:3634
eval @ plugin:templater-obsidian:3692
fulfilled @ plugin:templater-obsidian:50
Promise.then (async)
step @ plugin:templater-obsidian:62
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
parse_template @ plugin:templater-obsidian:3689
eval @ plugin:templater-obsidian:3685
fulfilled @ plugin:templater-obsidian:50
Promise.then (async)
step @ plugin:templater-obsidian:62
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
read_and_parse_template @ plugin:templater-obsidian:3683
eval @ plugin:templater-obsidian:3767
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
eval @ plugin:templater-obsidian:3766
eval @ plugin:templater-obsidian:100
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
errorWrapper @ plugin:templater-obsidian:98
eval @ plugin:templater-obsidian:3766
eval @ plugin:templater-obsidian:63
__async @ plugin:templater-obsidian:47
append_template_to_active_file @ plugin:templater-obsidian:3759
onChooseItem @ plugin:templater-obsidian:2361
e.onChooseSuggestion @ app.js:1
e.selectSuggestion @ app.js:1
t.useSelectedItem @ app.js:1
t.onSuggestionClick @ app.js:1
s @ enhance.js:1

So if I am reading the GET command properly, it is failing on api.quotable.io/random. What has me puzzled is the fact that it works on Windows, but not on Mac, on the same network.

It’s offline for a few hours now, I am guessing this is from previous tries/using a cached response.

@joethei Thanks for your help. I’ll try it again tomorrow and see if it resolved itself.

Getting the same error… it worked fine for a few days.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.