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

Better reporting for Mastodon API methods not implemented by a Node #398

Open
jernst opened this issue Oct 18, 2024 · 0 comments
Open

Better reporting for Mastodon API methods not implemented by a Node #398

jernst opened this issue Oct 18, 2024 · 0 comments

Comments

@jernst
Copy link
Member

jernst commented Oct 18, 2024

E.g WordPress Enable Mastodon Apps plugin does not implement:

  • self.http_get(f'/api/v1/statuses/{ obj_id }/favourited_by')
  • self.http_get(f'/api/v1/accounts/{ this_account_id }/following')

In this case, we currently raise in the

requests.exceptions.HTTPError: HTTP status 404: {"error":"rest_no_route","error_description":"No route was found matching the URL and request method."}

This should be intercepted and reported as NotImplementedByNodeException.

@jernst jernst added this to the FediTest 0.9 released milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant