-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi.
TL;DR: Remote account follow 404s on mastodon.xyz. Could be WAI, could be user error. I have a workaround, just thought you might like to know.
I've been using madonctl, but I'm assuming the underlying issue is in this repo.
My account is on mastodon.xyz. When I run the following command, I get the following error message:
$ ./madonctl account follow '@bcantrill@mastodon.social'
Error: API query (v1/follows) failed: bad server status code (404): Not Found
My understanding of the Mastodon API (and Go debugging!) is very limited, but I believe this should call FollowRemoteAccount, and hit the v1/follows endpoint, which... mastodon.xyz doesn't know about? Looking at https://docs.joinmastodon.org/api/, I don't see this as part of the official API, so I'm wondering if this is either unofficial, or not supported by all versions (e.g. whatever mastodon.xyz runs).
As I said, I don't know much about the API, so this is all guesswork. :) OTOH, perhaps it's still useful to make the library more universally applicable (unless I'm just using madonctl incorrectly).
I do have a workaround, so this is no longer an issue for me. I used the search functionality to get an account id:
./madonctl accounts follow $(./madonctl search --resolve $ACCT | grep -o 'Account ID: [^ ]*' | sed 's/Account ID: //')
Very ugly but got the job done.
I realise this report is not very detailed, I'm not sure what's useful to you, but I'm more than happy to help if you need more information.
Thanks,
Simon Frankau.