Skip to content

UnprocessableEntity Error #21

@tobes64

Description

@tobes64

Whilst running the GitHub Organizer came across an issue for the update_team_members function within the githuborganizer/tasks/github.py file

[2022-01-28 16:51:12,424: ERROR/ForkPoolWorker-68] Task githuborganizer.tasks.github.update_team_members[650674c1-837d-4931-bdfb-05ad6bccfeb1] raised unexpected: <UnprocessableEntity [You must purchase at least one more seat to add this user as a member.]>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 412, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 704, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/githuborganizer/tasks/github.py", line 249, in update_team_members
    team.add_or_update_membership(member)
  File "/usr/local/lib/python3.6/site-packages/github3/decorators.py", line 31, in auth_wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/github3/orgs.py", line 93, in add_or_update_membership
    return self._json(self._put(url, json=data), 200)
  File "/usr/local/lib/python3.6/site-packages/github3/models.py", line 156, in _json
    raise exceptions.error_for(response)
github3.exceptions.UnprocessableEntity: 422 You must purchase at least one more seat to add this user as a member.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions