2017-05-07 10 views
0

다른 스레드에서 응답을 찾으려고했지만 응답이 내 상황과 관련이있는 것 같지 않았습니다 (사과하지 않습니다.).RUBY -Mechanize :: ResponseCodeError : 503 => Net :: HTTPServiceUnavailable

> Mechanize::ResponseCodeError: 503 => Net::HTTPServiceUnavailable for 
> https://www.amazon.com/ -- unhandled response 

이제까지 누군가를 가지고 : 그건 내가 아마존을 webscrape하려고 본질적으로

>  require 'mechanize' 
>  
>  agent = Mechanize.new 
>  
>  page = agent.get('https://www.amazon.com/') 

IRB에 간단한 루비 스크립트를 실행하려고하고, 어떤 이유로 나는이 오류로 실행하고 말했다 전에 이걸 봤나? 나는 해결책이 간단하다고 느낀다. 그러나 나는 그것의 주위에 나의 두뇌를 감쌀 수 없다. 시간에 대한

감사합니다,

+0

user_agent 문자열이 마음에 들지 않으므로 아마 오류가 발생합니다. – pguardiario

+0

하나는 내가 기계화의 새로운 인스턴스를 선언? – javiwins

답변

0

The Web server (running the Web site) is currently unable to handle the HTTP request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. Some servers in this state may also simply refuse the socket connection, in which case a different error may be generated because the socket creation timed out.

-javi

무엇 503 수단이다. 출력이 명확하게 표시됩니다. Net::HTTPServiceUnavailable

오류가 최종적으로 아는 것이 아닙니다. 내가 너라면 나는 목표 서버가 실제로 작동하는지 확인하려고한다.