{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-amqp/bunny/issues/315","labels_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/315/comments","events_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/315/events","html_url":"https://github.com/ruby-amqp/bunny/issues/315","id":89062461,"number":315,"title":"ThreadError: can't create Thread: Resource temporarily unavailable","user":{"login":"whalesalad","id":5907,"avatar_url":"https://avatars.githubusercontent.com/u/5907?v=3","gravatar_id":"","url":"https://api.github.com/users/whalesalad","html_url":"https://github.com/whalesalad","followers_url":"https://api.github.com/users/whalesalad/followers","following_url":"https://api.github.com/users/whalesalad/following{/other_user}","gists_url":"https://api.github.com/users/whalesalad/gists{/gist_id}","starred_url":"https://api.github.com/users/whalesalad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whalesalad/subscriptions","organizations_url":"https://api.github.com/users/whalesalad/orgs","repos_url":"https://api.github.com/users/whalesalad/repos","events_url":"https://api.github.com/users/whalesalad/events{/privacy}","received_events_url":"https://api.github.com/users/whalesalad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T16:20:35Z","updated_at":"2015-06-17T16:42:32Z","closed_at":"2015-06-17T16:42:09Z","body":"```\r\nThreadError: can't create Thread: Resource temporarily unavailable\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/concurrent/continuation_queue.rb:24:in `poll'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/channel.rb:1743:in `wait_on_continuations'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/channel.rb:1145:in `block in exchange_declare'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/channel.rb:1144:in `exchange_declare'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/exchange.rb:245:in `declare!'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/exchange.rb:83:in `initialize'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/channel.rb:334:in `new'\r\n/app/vendor/bundle/ruby/2.2.0/gems/bunny-1.7.0/lib/bunny/channel.rb:334:in `topic'\r\n/app/lib/push_service/consumer.rb:18:in `initialize'\r\n```\r\n\r\nThe source line in my codebase triggering this issue:\r\n\r\n`@exchange = @channel.topic(EXCHANGE, durable: true)`\r\n\r\nI'm struggling to figure out why this is happening. I am running this within Heroku via a Rake task. It dies immediately so i'm not sure how it could be actually running out of threads."},"comment":{"url":"https://api.github.com/repos/ruby-amqp/bunny/issues/comments/112872477","html_url":"https://github.com/ruby-amqp/bunny/issues/315#issuecomment-112872477","issue_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/315","id":112872477,"user":{"login":"whalesalad","id":5907,"avatar_url":"https://avatars.githubusercontent.com/u/5907?v=3","gravatar_id":"","url":"https://api.github.com/users/whalesalad","html_url":"https://github.com/whalesalad","followers_url":"https://api.github.com/users/whalesalad/followers","following_url":"https://api.github.com/users/whalesalad/following{/other_user}","gists_url":"https://api.github.com/users/whalesalad/gists{/gist_id}","starred_url":"https://api.github.com/users/whalesalad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whalesalad/subscriptions","organizations_url":"https://api.github.com/users/whalesalad/orgs","repos_url":"https://api.github.com/users/whalesalad/repos","events_url":"https://api.github.com/users/whalesalad/events{/privacy}","received_events_url":"https://api.github.com/users/whalesalad/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T16:42:32Z","updated_at":"2015-06-17T16:42:32Z","body":"Programmer error. I had something inside of an infinite loop by mistake and did not catch it initially. Sorry!"}}