getaddrinfo: nodename nor servname provided, or not known

前端 未结 13 1635
梦谈多话
梦谈多话 2020-12-02 12:14

I have a Ruby on Rails application that I am deploying on a computer running Mac OS X 10.6. The code where the problem arises is run by a delayed_job. The problem only occur

13条回答
  •  忘掉有多难
    2020-12-02 12:24

    I was seeing this error unrelated to rails. It turned out my test was trying to use a port that was too high (greater than 65535).

    This code will produce the error in question

    require 'socket'
    Socket.getaddrinfo("127.0.0.1", "65536")
    

提交回复
热议问题