Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily Quote function is not working #481

Closed
rapatel0 opened this issue Dec 21, 2021 · 4 comments
Closed

Daily Quote function is not working #481

rapatel0 opened this issue Dec 21, 2021 · 4 comments
Assignees
Labels

Comments

@rapatel0
Copy link

@rapatel0 rapatel0 commented Dec 21, 2021

tp.web.daily_quote() not working. Internet connectivity is confirmed. the command was run multiple times after obsidian restarts to see if the it was a transient error. Looks like something is going wrong with QORS

Error in Obsidian:
image

Quote endpoint seems to be working
image

  • OS: Mac OS 11.6.1
  • Templater version: 1.9.9
  • Obsidian version: 0.13.3
@om23
Copy link

@om23 om23 commented Jan 11, 2022

https://quotes.rest/ certificate also expired today so tp.web.daily_quote() is failing

@perfmind
Copy link

@perfmind perfmind commented Jan 13, 2022

back to using random quotes from quotable.io
https://gist.github.com/ScottKillen/ec858f6f7014fc41451b71e805413794

@shabegom
Copy link
Collaborator

@shabegom shabegom commented Jan 13, 2022

An alternative qotd command:

<%*
const response = await fetch(`https://api.quotable.io/random`);
const     qod = await response.json();
const finalQuote = `> ${qod.content}
>
> &mdash; <cite>${qod.author}</cite>✍️`
tR += finalQuote
%>

@shabegom
Copy link
Collaborator

@shabegom shabegom commented Jan 13, 2022

resolved in 1.9.10

@shabegom shabegom closed this Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants