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

WordPress Enable Mastodon Apps does not like an empty Favorite content #399

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

Comments

@jernst
Copy link
Member

jernst commented Oct 18, 2024

Not sure what exactly is going on here.

Traceback (most recent call last):
  File "/home/ubosdev/git/github.com/jernst/feditest/venv.linux.default/lib/python3.11/site-packages/feditest/testrun.py", line 240, in run
    self.test_step.test_step_function(test_instance)
  File "/home/ubosdev/git/github.com/jernst/feditest-contrib/../feditest-tests-fediverse/tests/system2/like_single_hop.py", line 50, in receiver_likes_note
    self.receiver_node.like_object(self.receiver_actor_acct_uri, self.note_uri)
  File "/home/ubosdev/git/github.com/jernst/feditest/venv.linux.default/lib/python3.11/site-packages/feditest/nodedrivers/mastodon/__init__.py", line 705, in like_object
    mastodon_client.like_object(object_uri)
  File "/home/ubosdev/git/github.com/jernst/feditest/venv.linux.default/lib/python3.11/site-packages/feditest/nodedrivers/mastodon/__init__.py", line 319, in like_object
    response = self.http_post(f'/api/v1/statuses/{ note_id }/favourite')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubosdev/git/github.com/jernst/feditest/venv.linux.default/lib/python3.11/site-packages/feditest/nodedrivers/mastodon/__init__.py", line 227, in http_post
    return mastodon_api_invoke_post_or_put('POST', self._app.api_base_url, self._app.session, path, args=args, headers=self._auth_header)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubosdev/git/github.com/jernst/feditest/venv.linux.default/lib/python3.11/site-packages/feditest/nodedrivers/mastodon/__init__.py", line 172, in mastodon_api_invoke_post_or_put
    raise HTTPError(f'HTTP status { response.status_code }: { response.content.decode("utf-8") }', response=response)
requests.exceptions.HTTPError: HTTP status 422: {"error":"mastodon_api_submit_post","error_description":"Validation failed: Text can't be blank"}
@jernst jernst added this to the FediTest 0.5 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