Conversation
… user-friendly error Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Google翻訳で上限に達した時のエラーが分かりにくい
Fix Google翻訳で上限に達した時のエラーハンドリング
Jul 2, 2025
Owner
|
@copilot |
…ator Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
Contributor
Author
ご指摘ありがとうございます。修正対象をGoogleAITranslatorからGasTranslatorに変更しました。GasTranslatorにJsonException処理(リトライ回数制限とユーザーフレンドリーなエラーメッセージ)を追加しています。コミット8ff0c14で対応済みです。 |
Owner
|
@copilot |
Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
Contributor
Author
リトライロジックを削除しました。JsonException発生時は即座にユーザーフレンドリーなエラーメッセージを投げるように修正しています。コミット 2e06db4で対応済みです。 |
`InvalidOperationException`のメッセージを複数行に分割し、可読性を向上させました。これにより、翻訳サービスからの予期しないレスポンスに関する情報がより明確に伝わるようになりました。
Freeesia
approved these changes
Jul 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google翻訳で上限に達した時にHTMLが返ってきて、Jsonパースに失敗している例外メッセージが表示される問題を修正しました。
問題
GoogleAITranslatorで翻訳上限に達した際、以下の問題が発生していました:
continueするため無限ループになる可能性解決策
JsonException処理にリトライ回数制限とユーザーフレンドリーなエラーメッセージを追加:
変更内容
これにより、ユーザーは明確な原因と対処法を知ることができ、無限ループも回避されます。
Fixes #296.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.