Heya,
I am making a call to the Ticketweb API in my application. It uses the HTTParty library, and works perfectly on my local machine (in production and dev env). When I deploy to Heroku it is giving me the following error:
2012-05-26T13:57:42+00:00 app[web.1]: Started GET "/events" for 70.83.36.139 at 2012-05-26 13:57:42 +0000
2012-05-26T13:57:42+00:00 app[web.1]:
2012-05-26T13:57:42+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
2012-05-26T13:57:42+00:00 app[web.1]: app/models/event.rb:8:in `fetch'
2012-05-26T13:57:42+00:00 app[web.1]: app/controllers/events_controller.rb:9:in `index'
2012-05-26T13:57:42+00:00 app[web.1]:
2012-05-26T13:57:42+00:00 app[web.1]: app/models/event.rb:18:in `get_events_between'
2012-05-26T13:57:42+00:00 app[web.1]:
2012-05-26T13:57:42+00:00 app[web.1]: Processing by EventsController#index as HTML
2012-05-26T13:57:42+00:00 heroku[router]: GET fivefourbelow.herokuapp.com/events dyno=web.1 queue=0 wait=0ms service=107ms status=500 bytes=643
2012-05-26T13:57:42+00:00 app[web.1]: Completed 500 Internal Server Error in 93ms
I am really stuck with this issue, and the release of the site is being delayed. Any help would be greatly appreciated. Apologises in advance if I'm doing something stupid.
Conor.