Skip to content

NarouNovelFetchにHTTPステータスの検証を追加 - #258

Merged
deflis merged 1 commit into
masterfrom
codex/check-http-status
Nov 1, 2026
Merged

deflis merged 1 commit into
masterfrom
codex/check-http-status

Conversation

@deflis

@deflis deflis commented Nov 1, 2026

Copy link
Copy Markdown
Owner

HTTPステータスを確認せず本文を解析していたため、非2xxでも解析可能なJSONが返ると正常な結果として返していました。fetch直後にres.okを確認し、非2xxでは本文を読み取らず、ステータスコードとステータステキストを含むErrorでrejectします。

403・404・429・500についてgzip指定の有無にかかわらず本文を読まないことと、HTTP 200で返るプレーンテキストのAPIエラーが従来どおりrejectされることをテストしています。

検証: pnpm run check成功(lint・型チェック・実APIテストを含む698件成功、3件スキップ)。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T16:22:43.281921Z cb172cd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@deflis
deflis merged commit 2fedf20 into master Nov 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant