Title: Adding a collaborator to a repo returns pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON · Issue #64 · copitux/python-github3 · GitHub
Open Graph Title: Adding a collaborator to a repo returns pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON · Issue #64 · copitux/python-github3
X Title: Adding a collaborator to a repo returns pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON · Issue #64 · copitux/python-github3
Description: I'm trying to add a collaborator to a repo with: gh.repos.collaborators.add("collaborator-name", "name", "repo") but I'm getting: pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON Here is the full stack: Traceback (most recent...
Open Graph Description: I'm trying to add a collaborator to a repo with: gh.repos.collaborators.add("collaborator-name", "name", "repo") but I'm getting: pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON Here i...
X Description: I'm trying to add a collaborator to a repo with: gh.repos.collaborators.add("collaborator-name", "name", "repo") but I'm getting: pygithub3.exceptions.BadReque...
Opengraph URL: https://github.com/copitux/python-github3/issues/64
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding a collaborator to a repo returns pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON","articleBody":"I'm trying to add a collaborator to a repo with:\r\n```\r\ngh.repos.collaborators.add(\"collaborator-name\", \"name\", \"repo\")\r\n```\r\n\r\nbut I'm getting: \r\n```\r\npygithub3.exceptions.BadRequest: 400 - Problems parsing JSON\r\n```\r\n\r\nHere is the full stack:\r\n```\r\nTraceback (most recent call last):\r\n File \"./test.py\", line 8, in \u003cmodule\u003e\r\n collaborators = gh.repos.collaborators.add(\"collaborator-name\", \"name\", \"repo\")\r\n File \"/Library/Python/2.7/site-packages/pygithub3/services/repos/collaborators.py\", line 40, in add\r\n return self._put(request)\r\n File \"/Library/Python/2.7/site-packages/pygithub3/services/base.py\", line 129, in _put\r\n response = self._client.put(request, data=input_data, **kwargs)\r\n File \"/Library/Python/2.7/site-packages/pygithub3/core/client.py\", line 100, in put\r\n response = self.request('put', request, **kwargs)\r\n File \"/Library/Python/2.7/site-packages/pygithub3/core/client.py\", line 71, in wrapper\r\n return func(self, verb, request, **kwargs)\r\n File \"/Library/Python/2.7/site-packages/pygithub3/core/client.py\", line 81, in request\r\n GithubError(response).process()\r\n File \"/Library/Python/2.7/site-packages/pygithub3/core/errors.py\", line 35, in process\r\n raise raise_error()\r\n File \"/Library/Python/2.7/site-packages/pygithub3/core/errors.py\", line 23, in error_400\r\n raise BadRequest(\"400 - %s\" % self.debug.get('message'))\r\npygithub3.exceptions.BadRequest: 400 - Problems parsing JSON\r\n```\r\n\r\nI tried deleting and listing, they both work fine, but adding doesn't work. Could you please advice? Thanks.","author":{"url":"https://github.com/hhebbo","@type":"Person","name":"hhebbo"},"datePublished":"2017-08-15T14:38:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/64/python-github3/issues/64"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c37c9cb4-3ecf-ea41-433a-fdedc80beb31 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAE2:2D5C0D:4DDAFD:6D4C2F:6970A9B6 |
| html-safe-nonce | 9a26cfa6cf9ba62791b4d855a6a7b06eb8dcab3cda33542f595938a00fd1364c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUUyOjJENUMwRDo0RERBRkQ6NkQ0QzJGOjY5NzBBOUI2IiwidmlzaXRvcl9pZCI6IjU4ODA5NDcwMDQ3NTcwMjcyNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 553be50f478632d38a1321b984558c2ff7ebd9a071a721ea069bf1bb2ad57be8 |
| hovercard-subject-tag | issue:250334318 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/copitux/python-github3/64/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39d4f8490d1013d7c59be5a826b2f76da276c52f3c10da1f15ada1f45baab073/copitux/python-github3/issues/64 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39d4f8490d1013d7c59be5a826b2f76da276c52f3c10da1f15ada1f45baab073/copitux/python-github3/issues/64 |
| og:image:alt | I'm trying to add a collaborator to a repo with: gh.repos.collaborators.add("collaborator-name", "name", "repo") but I'm getting: pygithub3.exceptions.BadRequest: 400 - Problems parsing JSON Here i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hhebbo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5246860f280a060af866c1c633f74a6720ad2dd5d576534e4c5e462496b693ae |
| turbo-cache-control | no-preview |
| go-import | github.com/copitux/python-github3 git https://github.com/copitux/python-github3.git |
| octolytics-dimension-user_id | 508027 |
| octolytics-dimension-user_login | copitux |
| octolytics-dimension-repository_id | 2667011 |
| octolytics-dimension-repository_nwo | copitux/python-github3 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 1573719 |
| octolytics-dimension-repository_parent_nwo | kennethreitz/python-github3 |
| octolytics-dimension-repository_network_root_id | 1573719 |
| octolytics-dimension-repository_network_root_nwo | kennethreitz/python-github3 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d29ab0ba8deb7bbecf06b664759d4e847623783 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width