Bug 484475

Summary: Failed to contact server: Error transferring https://.../api/v1/accounts/.../featured_tags - server replied: . Please check your settings.
Product: [Applications] Tokodon Reporter: tbqdrn
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: carl, josh
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In: 24.05.3
Sentry Crash Report:

Description tbqdrn 2024-03-25 20:36:57 UTC
SUMMARY
Some alternative fediverse software like e.g. Akkoma does not implement Mastodons featured_tags API methods.
See https://docs.joinmastodon.org/methods/featured_tags/ and https://docs.akkoma.dev/stable-docs/development/API/differences_in_mastoapi_responses/#featured-tags

Because of that, visiting a profile when connected to an Akkoma instance shows this ugly error message at the top:

Failed to contact server: Error transferring https://.../api/v1/accounts/.../featured_tags - server replied: . Please check your settings.

Visiting the specified URL in a browser gets me a {"error":"Not implemented"} JSON response, so I would suggest to silently fail instead of showing this error every time.

STEPS TO REPRODUCE
1. Connect Tokodon with an account hosted on any Akkoma instance
2. Visit a profile

OBSERVED RESULT
See error message at the top

EXPECTED RESULT
Silently fail

SOFTWARE/OS VERSIONS
OS: Arch Linux
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 tbqdrn 2024-03-25 20:38:22 UTC
*** Bug 484474 has been marked as a duplicate of this bug. ***
Comment 2 Joshua Goins 2024-03-26 12:23:22 UTC
Thanks for reporting as well as the response you get. I'll look into stopping the error (or possibly hiding the menu all together, if we can detect it)
Comment 3 Joshua Goins 2024-07-06 16:18:46 UTC
Git commit 5236b6afc7aca5043b3fdc464792ee0e42102720 by Joshua Goins.
Committed on 06/07/2024 at 16:11.
Pushed by redstrate into branch 'master'.

Silently fail when 404'ing on featured tags

Some server software like Akkoma/Pleroma don't implement this endpoint,
annoying users of these servers. Instead of violently warning that we
404'd, just silently fail. This is OK as the code will fall back to not
showing any tags.

M  +24   -15   src/account/featuredtagsmodel.cpp

https://invent.kde.org/network/tokodon/-/commit/5236b6afc7aca5043b3fdc464792ee0e42102720
Comment 4 Joshua Goins 2024-07-06 16:26:38 UTC
Git commit 578e75caf8971cd0b1e2f739e5a7a5069de1a2c2 by Joshua Goins.
Committed on 06/07/2024 at 16:19.
Pushed by redstrate into branch 'release/24.05'.

Silently fail when 404'ing on featured tags

Some server software like Akkoma/Pleroma don't implement this endpoint,
annoying users of these servers. Instead of violently warning that we
404'd, just silently fail. This is OK as the code will fall back to not
showing any tags.


(cherry picked from commit 5236b6afc7aca5043b3fdc464792ee0e42102720)

Co-authored-by: Joshua Goins <josh@redstrate.com>

M  +24   -15   src/account/featuredtagsmodel.cpp

https://invent.kde.org/network/tokodon/-/commit/578e75caf8971cd0b1e2f739e5a7a5069de1a2c2