开发者

Error using Twitter gem, Errno::EAFNOSUPPORT

I am getting this 开发者_Go百科error on my Heroku deployment:

Errno::EAFNOSUPPORT: Address family not supported by protocol - 
socket2 
        usrruby19.2libruby1.9.1nethttprb:644:in initialize 
        usrruby19.2libruby1.9.1nethttprb:644:in open 
        usrruby19.2libruby1.9.1nethttprb:644:in block in connect 
        usrruby19.2libruby1.9.1timeoutrb:44:in timeout 

When I make a certain call Twitter like so:

Twitter.profile_image('screen name', :size => 'mini') 

This code works locally as per the gem's documentation and I've not been able to Google anything about it.

My local setup is as follows:

ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10.6.0], MBARI 
0x6770, Ruby Enterprise Edition 2011.03 

And I am using the bamboo-mri-1.9.2 stack on Heroku.


Address family not supported by protocol - socket(2) (Errno::EAFNOSUPPORT) this error has no other better solution than time.In realit the socket is already in a running state so unless and unrtil it gets free there is no solution to it.Then also you can try by restarting your machine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜