Narou.rb のバージョン:Narou.rb version 3.2.3
OS のバージョン:Windows 10 Pro
その他環境情報(任意):ruby 2.5.1p57
何が起きたのか:[蜘蛛ですが、なにか?]の変換に失敗します。
再現方法(何をやったら起こったのか詳細に):
WEB UI上から失敗しましたので、コマンドも試しましたが下記の通りエラーになりました。
narou --backtrace convert n7975cr
ID:2661 蜘蛛ですが、なにか? の変換を開始
C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/inspector.rb:183:in `block in countup_return_in_brackets': undefined method `scan' for #<Array:0x03910428> (NoMethodError)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/inspector.rb:182:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/inspector.rb:182:in `countup_return_in_brackets'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/novelconverter.rb:723:in `inspect_novel'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/novelconverter.rb:394:in `convert_main'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/novelconverter.rb:51:in `convert'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:208:in `block in convert_novels'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:181:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:181:in `with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:181:in `convert_novels'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:162:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:155:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:155:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
※ Narou.rb version 3.1.11 の環境が別PCに残っていたので試したところ、そちらでは変換に成功しました。
C:/Ruby25/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect': Failed to open TCP connection to ncode.syosetu.com:443 (A connectio
n attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connec
ted host has failed to respond. - connect(2) for "ncode.syosetu.com" port 443) (Errno::ETIMEDOUT)
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:936:in `block in connect'
from C:/Ruby25/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
from C:/Ruby25/lib/ruby/2.5.0/timeout.rb:103:in `timeout'
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:935:in `connect'
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:909:in `start'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:337:in `open_http'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:755:in `buffer_open'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:226:in `block in open_loop'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:224:in `catch'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:224:in `open_loop'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:165:in `open_uri'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:735:in `open'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:35:in `open'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:711:in `get_toc_source'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:746:in `get_latest_table_of_contents'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:339:in `run_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:322:in `start_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:193:in `block (2 levels) in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:168:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:168:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:168:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/narou_logger.rb:81:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:167:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse': (I:/webssdl/mail_setting.yaml): did not find expected key while parsing a block mapping at line 27 column 1 (Psych::SyntaxError)
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse_stream'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:350:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:263:in `load'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:498:in `block in load_file'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `open'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `load_file'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/mailer.rb:25:in `create'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/command/mail.rb:48:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>
再現方法(何をやったら起こったのか詳細に):
[2018-11-09 19:25:42] INFO WEBrick 1.4.2
[2018-11-09 19:25:42] INFO ruby 2.5.3 (2018-10-18) [x64-mingw32]
== Sinatra (v1.4.8) has taken the stage on 53302 for production with backup from WEBrick
[2018-11-09 19:25:42] INFO WEBrick::HTTPServer#start: pid=6952 port=53302
指定されたプログラムは実行できません。
以降何も進まなくなりました。
NASにフォルダを置いて、なにも問題なく使っていましたが、突然こうなりました。
rubyとnarou rbを入れ直したが変わりませんでした。
コマンドプロプトでの小説アップデートなどは出来、kindleへの送信も出来ました。
心当たりはOSビルドが上がったことくらいなので、ロールバックがまだできるなら、やってきます
内容:
E:\Nv\narou>narou u 12037 --backtrace
ID:12037 【くる ひなた】寮母さんには敵わないっ! のDL開始
C:/Ruby25/lib/ruby/2.5.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): https://ncode.syosetu.com/txtdownload/dlstart/ncode/<li><a href="https://ncode.syosetu.com/txtdownload/top/ncode/(?<tcode>\d+?)/" onclick/?no=12 (URI::InvalidURIError)
from C:/Ruby25/lib/ruby/2.5.0/uri/rfc3986_parser.rb:73:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/uri/common.rb:237:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:34:in `open'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:1142:in `download_raw_data'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:1092:in `a_section_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:988:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:988:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:988:in `sections_download_and_save'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:390:in `run_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:332:in `start_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:182:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:157:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:157:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandline.rb:29:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandline.rb:43:in `run!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/narou.rb:49:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
ID:118 気に入った幼女を悟られぬよう罠に嵌めて借金地獄にし奴隷落ちした所を颯爽と買いマッチポンプ的方法で自分のものにしたのに「私の事は家族だと思って」とか言って幼女の尊敬を集めその日の内に純愛ックスする百合 のDL開始
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:1085:in `a_section_download': undefined method `[]' for nil:NilClass (NoMethodError)
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `each'
D:\mynovels>narou trace
--- 2018/12/18 20:50:27 ---
C:/Ruby24-x64/bin/narou u
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:1085:in `a_section_download': undefined method `[]' for nil:NilClass (NoMethodError)
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `each'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `each_with_index'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `sections_download_and_save'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:390:in `run_download'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:332:in `start_download'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:182:in `block in execute'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:157:in `each'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:157:in `execute'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandline.rb:29:in `run'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandline.rb:43:in `run!'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/narou.rb:50:in `block in <top (required)>'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/backtracer.rb:16:in `capture'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/narou.rb:49:in `<top (required)>'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/bin/narou:13:in `require_relative'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/bin/narou:13:in `<top (required)>'
from C:/Ruby24-x64/bin/narou:23:in `load'
from C:/Ruby24-x64/bin/narou:23:in `<main>'
/Users/(ユーザ名)/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/narou-3.4.2/lib/sitesetting.rb:28: warning: use glob patterns list instead of nul-separated patterns