{"action":"closed","issue":{"url":"https://api.github.com/repos/travis-ci/travis.rb/issues/301","labels_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/301/comments","events_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/301/events","html_url":"https://github.com/travis-ci/travis.rb/issues/301","id":91611592,"number":301,"title":"Unable to add heroku deploy section after moving repo from pro to org","user":{"login":"kevgathuku","id":3721994,"avatar_url":"https://avatars.githubusercontent.com/u/3721994?v=3","gravatar_id":"","url":"https://api.github.com/users/kevgathuku","html_url":"https://github.com/kevgathuku","followers_url":"https://api.github.com/users/kevgathuku/followers","following_url":"https://api.github.com/users/kevgathuku/following{/other_user}","gists_url":"https://api.github.com/users/kevgathuku/gists{/gist_id}","starred_url":"https://api.github.com/users/kevgathuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevgathuku/subscriptions","organizations_url":"https://api.github.com/users/kevgathuku/orgs","repos_url":"https://api.github.com/users/kevgathuku/repos","events_url":"https://api.github.com/users/kevgathuku/events{/privacy}","received_events_url":"https://api.github.com/users/kevgathuku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-28T15:54:30Z","updated_at":"2015-06-28T16:06:05Z","closed_at":"2015-06-28T16:06:05Z","body":"I have a repo that I moved from pro to org.\r\nWhen I was using pro, I had heroku deployment set up and it worked like a charm.\r\nOn moving it to travis org, the `travis setup heroku` ran successfully but all heroku deploys failed with this error\r\n```\r\nExpected(200) <=> Actual(401 Unauthorized)\r\nbody: \"{\\\"id\\\":\\\"unauthorized\\\",\\\"error\\\":\\\"Invalid credentials provided.\\\"}\" (wrong API key?)\r\nfailed to deploy\r\n```\r\nAfter around 24 hours, on trying to add the heroku section automatically as documented in the [Heroku deployment docs](http://docs.travis-ci.com/user/deployment/heroku/), through the \r\n`travis setup heroku` command, I am now getting this error:\r\n```\r\nnot logged in, please run travis login --pro\r\n```\r\nDoes this have something to do with the move of the repo from pro to org?\r\nI would really appreciate any help. I've exhausted all other options. Thanks in advance."}}