python-github3 icon indicating copy to clipboard operation
python-github3 copied to clipboard

BadRequest exception when adding a collaborator

Open ghost opened this issue 9 years ago • 0 comments

The following:

from pygithub3 import Github
Github(token='token').repos.collaborators.add('collaborator', user='user', repo='repo')

fails with pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON after GitHub tries to interpret the PLACEHOLDER (submitted by pygithub.services.base.Service._put) as JSON.

ghost avatar Mar 15 '16 17:03 ghost