Skip to content

Read app_user User #1529

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

Open
Lukas-solar opened this issue Apr 26, 2025 · 0 comments
Open

Read app_user User #1529

Lukas-solar opened this issue Apr 26, 2025 · 0 comments

Comments

@Lukas-solar
Copy link

Lukas-solar commented Apr 26, 2025

It is not possible to read a User from a PR comment, if the User has type="app_user".

  File "/opt/atlassian/pipelines/agent/build/.venv/lib/python3.12/site-packages/atlassian/bitbucket/cloud/common/comments.py", line 34, in user
    return User(None, self.get_data("user"), **self._new_session_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/atlassian/pipelines/agent/build/.venv/lib/python3.12/site-packages/atlassian/bitbucket/cloud/common/users.py", line 6, in __init__
    super(User, self).__init__(url, *args, data=data, expected_type="user", **kwargs)
  File "/opt/atlassian/pipelines/agent/build/.venv/lib/python3.12/site-packages/atlassian/bitbucket/cloud/base.py", line 25, in __init__
    raise ValueError(f"Expected type of data is [{expected_type}], got [{self.get_data('type')}].")
ValueError: Expected type of data is [user], got [app_user].
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