rubyにてテキストを作成し、
xmlrpcで自動投稿させているのですが、
突然エラーが出てプログラムが続行されなくなりました。
投稿は出来ているので、不思議な状態です。
/usr/local/lib/ruby/2.2.0/net/protocol.rb:158:in `rescue in rbuf_fill': Net::ReadTimeout (Net::ReadTimeout) from /usr/local/lib/ruby/2.2.0/net/protocol.rb:152:in `rbuf_fill' from /usr/local/lib/ruby/2.2.0/net/protocol.rb:134:in `readuntil' from /usr/local/lib/ruby/2.2.0/net/protocol.rb:144:in `readline' from /usr/local/lib/ruby/2.2.0/net/http/response.rb:39:in `read_status_line' from /usr/local/lib/ruby/2.2.0/net/http/response.rb:28:in `read_new' from /usr/local/lib/ruby/2.2.0/net/http.rb:1413:in `block in transport_request' from /usr/local/lib/ruby/2.2.0/net/http.rb:1410:in `catch' from /usr/local/lib/ruby/2.2.0/net/http.rb:1410:in `transport_request' from /usr/local/lib/ruby/2.2.0/net/http.rb:1383:in `request' from /usr/local/lib/ruby/2.2.0/net/http.rb:1329:in `request_post' from /usr/local/lib/ruby/2.2.0/xmlrpc/client.rb:482:in `do_rpc' from /usr/local/lib/ruby/2.2.0/xmlrpc/client.rb:286:in `call2' from /usr/local/lib/ruby/2.2.0/xmlrpc/client.rb:267:in `call' from hogehoge.rb:233:in `<main>'
エラー発生個所
ruby
1# 投稿の実行 2id = client.call( 3 "metaWeblog.newPost", 4 1, 5 "ID", 6 "pass", 7 struct, 8 publish 9) 10puts "PostID: #{id}" 11
client.callの行でエラーとなります。
しばらくは問題なく動いていたので
コード自体に異常があるようには思っていません。
(そのため、エラーに気づかなかった)
変わったところと言えば、
この数日前にwordpressのupdateがあり、「4.7.5」になっています。
(update後、数日は動いているの、原因ではないかと)
あと、
エラーはtimeoutですが、手動で叩いても、ほとんど待たされずに、エラーが出てきます。
よろしくお願いします。
あなたの回答
tips
プレビュー