Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JaneViewで更新のないスレの更新確認時に416が返る? #5

Closed
onihusube opened this issue Apr 14, 2022 · 16 comments
Closed
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@onihusube
Copy link
Owner

onihusube commented Apr 14, 2022

(・∀・)ソンナニナガクナイッテ HTTP/1.1 416 Requested range not satisfiable

特に問題は無いんだけど、読み込みの終わった新着レスの無いスレを読み込むと
JaneViewのログに上のエラーが出てる
書き込みはできないけど2chapixyだとこのエラーは出ない

俺もViewでそのエラー出てるけど実害無いので放ってたわ。
どのスレでも読み込みしてレスが無かった場合に出るね。

うちのviewも新着チェックして新着レスがないスレはどの板のスレでも416エラー出てるな
だから何か困るってわけでもないんだけど

今回の件で2chapixyから2chAPIProxyにしたので
元から2chAPIProxyではそうなのか、新環境によるおま環なのかは分からん

@onihusube
Copy link
Owner Author

手元のJanview(Build date: 1507130036)では確認できず・・・

「板の読み込みを速くする」で変化なし

@onihusube onihusube added bug Something isn't working help wanted Extra attention is needed labels Apr 15, 2022
@as123414
Copy link

これで出ます
JaneDoe View α ( build date: 1814100038 )
image

@as123414
Copy link

as123414 commented Apr 30, 2022

こうなっていました
(インターネット - Fiddler - 2chapiproxy - 専ブラ)
Viewのほうがちょうどダウンロード済みのファイルサイズと同じ数値にRangeを設定していますが
Xenoのほうはそこから-1していました。

JaneDoe View α ( build date: 1814100038 )

image

JaneXeno x86 220330

image

@onihusube
Copy link
Owner Author

@as123414 報告ありがとうございます!新しいバージョンがあったのですね。

手元で試したいのですが、build date: 1814100038のバージョンって現在もどこかでダウンロードできますか・・・?

@onihusube

This comment was marked as outdated.

@as123414
Copy link

as123414 commented May 1, 2022

こちらのベータ版がバージョンがbuild date: 1814100038)です。
http://web.archive.org/web/20190210184806/http://www.geocities.jp/jview2000/

@as123414
Copy link

as123414 commented May 1, 2022

ベータでないほうも同じエラーが出ますね

@onihusube
Copy link
Owner Author

@as123414 ありがとうございます!

しかし、ベータ版にしても再現せずですね・・・

一つ気になったのですが、上のスクショではViewに直接5ch.netのURLを入れていますが、自分の環境下だとそれはできないっぽいので2ch.netに書き換えてます。これってどこか設定ありますか?

@as123414
Copy link

as123414 commented May 1, 2022

設定を変更しているのは「ボード一覧取得URL」を http://bbsmenu.afi.click/5ch_machi/bbsmenu.html に変更したのとプロキシの設定だけですね。

@onihusube
Copy link
Owner Author

ボード一覧取得URLを変えてみましたがやはり再現しなかったですが、手動で状況を再現(dat取得リクエスト前にrangeヘッダの値を+1)してみたところ同様の振る舞いを確認しました。そして原因も・・・

@as123414 お手数ですが、こちらのexeへ差し替えて問題が解消されたかを確認していただけますか?
2chAPIProxy.zip

@onihusube
Copy link
Owner Author

onihusube commented May 1, 2022

原因(暫定)メモ

APIサーバに差分dat要求をするとき、datのサイズがピッタリ(ローカルdat=リモートdat、更新無し)の場合でも更新無し(304)が返ってくる。

しかしこの時、If-Modified-Sinceヘッダが付加されていないと、404が返ってくる。

2chAPIProxyはいつからかは不明だが、結構前からdat差分取得時にIf-Modified-Sinceヘッダを付加し忘れていた・・・

Viewが何かしらの設定によって、rangeヘッダにローカルdatサイズピッタリ送ってくる(-1しない)場合に、更新確認で404が返り、2chAPIProxy内で416へ置換されて返されてしまっていたっぽい。

onihusube added a commit that referenced this issue May 1, 2022
dat差分取得時、If-Modified-Sinceヘッダを送信していなかった・・・
@as123414
Copy link

as123414 commented May 1, 2022

試してみましたがまだ同じエラーが出てきますね。。。
再現できないとのこのですが板一覧の更新と再起動とスレ一覧の再取得とDAT再取得を試してみるとどうでしょうか。

おそらくhttpではなくhttpsになってしまうということですよね。。
自分の環境をあげておきます。

DoeView181014beta.zip
2chAPIProxy.zip

@onihusube
Copy link
Owner Author

@as123414 ありがとうございます、頂いた環境で再現しました!

原因と修正は正しかったのですが、添付するファイルを間違えてました。

このexeとdllで試してみてください。

2chAPIProxy tes.zip

@as123414
Copy link

as123414 commented May 1, 2022

エラーが出なくなりましたね

@onihusube
Copy link
Owner Author

「ボード一覧取得URL」を http://bbsmenu.afi.click/5ch_machi/bbsmenu.html に変更

これと

板一覧の更新と再起動とスレ一覧の再取得とDAT再取得

これで今まで出なかった環境でも再現するようになりました。

2chAPIProxy側では5ch.netのURLでリクエストが届いているので、Jane Viewが2ch.net以外に対しては差分取得時にdatサイズ-1(あぼーん検出)をしないようになってるのでしょうかね。

APIの仕様変更とかでサイズピッタリアクセスに404返されるようになったら、UAからviewを見つけて、5chのdatに対するアクセスだったら-1とかすると良さそう。

@onihusube
Copy link
Owner Author

反応的に大丈夫そうなのでクローズします。ご協力ありがとうございました!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants