{"action":"closed","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/961","repository_url":"https://api.github.com/repos/cantino/huginn","labels_url":"https://api.github.com/repos/cantino/huginn/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/961/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/961/events","html_url":"https://github.com/cantino/huginn/issues/961","id":99798834,"number":961,"title":"Twitter Stream invalid status code: 401","user":{"login":"nxfifteen","id":5001959,"avatar_url":"https://avatars.githubusercontent.com/u/5001959?v=3","gravatar_id":"","url":"https://api.github.com/users/nxfifteen","html_url":"https://github.com/nxfifteen","followers_url":"https://api.github.com/users/nxfifteen/followers","following_url":"https://api.github.com/users/nxfifteen/following{/other_user}","gists_url":"https://api.github.com/users/nxfifteen/gists{/gist_id}","starred_url":"https://api.github.com/users/nxfifteen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nxfifteen/subscriptions","organizations_url":"https://api.github.com/users/nxfifteen/orgs","repos_url":"https://api.github.com/users/nxfifteen/repos","events_url":"https://api.github.com/users/nxfifteen/events{/privacy}","received_events_url":"https://api.github.com/users/nxfifteen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-08T12:41:38Z","updated_at":"2016-02-14T22:47:51Z","closed_at":"2016-02-14T22:47:51Z","body":"I'm trying to setup a Twitter stream agent but having some problems.\r\n\r\nI've created by app in apps.twitter.com [as per](https://github.com/cantino/huginn/wiki/Configuring-OAuth-applications) and copied the Consumer Key to TWITTER_OAUTH_KEY and Consumer Secret to TWITTER_OAUTH_SECRET in my _.env_ file but I cant use any of the Twitter agents.\r\n\r\nIf I try the Twitter Publish Agent comes back with error \"Could not authenticate you.\" and if I enable the Twitter Stream Agent I get a 401 error when restarting foreman:\r\n\r\n```sh\r\n$ bundle exec foreman start\r\n12:43:05 web.1  | started with pid 6648\r\n12:43:05 jobs.1 | started with pid 6650\r\n12:43:07 web.1  | Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.\r\n12:43:07 jobs.1 | Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.\r\n12:43:11 jobs.1 | Found 1 agent(s).  Loading them now...\r\n12:43:12 jobs.1 |  --> Twitter error: invalid status code: 401. <--\r\n```\r\nWhat's confusing is I can go into the Your Services tab and authenticate my Twitter account without getting any error messages.\r\n\r\nCan anyone point me in the right direction for what I'm doing wrong"}}