You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 24, 2022. It is now read-only.
Adding a collaborator to a repo returns pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON #64
Traceback (most recent call last):
File "./test.py", line 8, in <module>
collaborators = gh.repos.collaborators.add("collaborator-name", "name", "repo")
File "/Library/Python/2.7/site-packages/pygithub3/services/repos/collaborators.py", line 40, in add
return self._put(request)
File "/Library/Python/2.7/site-packages/pygithub3/services/base.py", line 129, in _put
response = self._client.put(request, data=input_data, **kwargs)
File "/Library/Python/2.7/site-packages/pygithub3/core/client.py", line 100, in put
response = self.request('put', request, **kwargs)
File "/Library/Python/2.7/site-packages/pygithub3/core/client.py", line 71, in wrapper
return func(self, verb, request, **kwargs)
File "/Library/Python/2.7/site-packages/pygithub3/core/client.py", line 81, in request
GithubError(response).process()
File "/Library/Python/2.7/site-packages/pygithub3/core/errors.py", line 35, in process
raise raise_error()
File "/Library/Python/2.7/site-packages/pygithub3/core/errors.py", line 23, in error_400
raise BadRequest("400 - %s" % self.debug.get('message'))
pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON
I tried deleting and listing, they both work fine, but adding doesn't work. Could you please advice? Thanks.
Activity