tabliss icon indicating copy to clipboard operation
tabliss copied to clipboard

[Bug] Quotes from "thesaidso.com" don't load

Open KomornikBank opened this issue 10 months ago • 11 comments

When you add the "Quotes" widget any quotes in it (except the hourly developer ones) do not load. If you open the console you can see that there seems to be a permission error with the "quotes.rest" API. After testing their API for some time it seems that all calls made to it result in a 401 error, regardless of the provided parameters. The solution to this problem would I guess be either replacing the currently utilised API with a different one or waiting an indefinite amount of time for the people behind "theysaidso.com" to fix the problem with their API.

KomornikBank avatar Mar 29 '24 12:03 KomornikBank

When you add the "Quotes" widget any quotes in it (except the hourly developer ones) do not load. If you open the console you can see that there seems to be a permission error with the "quotes.rest" API. After testing their API for some time it seems that all calls made to it result in a 401 error, regardless of the provided parameters. The solution to this problem would I guess be either replacing the currently utilised API with a different one or waiting an indefinite amount of time for the people behind "theysaidso.com" to fix the problem with their API.

I encountered the same situation.

aoaim avatar Mar 31 '24 05:03 aoaim

Update: After some more experimenting and contacting the "theysaidso.com" team I've found out that the API is working as intended, it just needs an API key in one of the request headers now. On the "quotes.rest" example API testing website I've set up a working request and attached a screenshot of it to this comment. It seems that the problem was actually a change in their API that made it so every request requires an API key. I'm guessing that just putting it into the request made by the "Quotes" widget is a viable and free solution as their website states that this specific part of the API is free. Zrzut ekranu 2024-03-31 145519

KomornikBank avatar Mar 31 '24 12:03 KomornikBank

Having the same issue as well. Mine will load the developer excuses, but not the other quotes.

GaelanVenturi avatar May 17 '24 13:05 GaelanVenturi

Having the same issue as well. Mine will load the developer excuses, but not the other quotes.

The developer excuses are properly loaded because they use a different API than all the other options.

KomornikBank avatar May 18 '24 22:05 KomornikBank

I believe that the free version of Quotes API now requires a bearer API key (rate-limited), which Tabliss does not provide. There should be an update fixing that, and also rate-limit the update of the quote to avoid hitting the limit

shanoaice avatar Jun 06 '24 10:06 shanoaice

Yep, from the quotes.rest page:

Please note recently we closed down public access without api key to prevent abuse. The public routes are still available to use free of charge but requires an api token.

They allow 5 quotes per day on the free tier. That would be alright if we can cache one a day I suppose. Could there be other quotes APIs to use instead?

Eraph avatar Jul 08 '24 23:07 Eraph

Could there be other quotes APIs to use instead?

I did find one: https://zenquotes.io/

Though I believe preserving current quotes.rest API and allow API keys is a good option, because zenquotes.io applies rate-limit by IP address. Sometimes this can cause trouble in an environment with carrier-grade NAT configured.

shanoaice avatar Jul 16 '24 08:07 shanoaice

It is still not loading anything :(

uncharted-user avatar Sep 27 '24 23:09 uncharted-user

It is still not loading anything :(

Until we get a fix from developer this probably won't load, API has changed

shanoaice avatar Sep 28 '24 00:09 shanoaice