エラーコードポータル
GoogleGoogle APIs / gRPCエラーコード

FAILED_PRECONDITION

FAILED PRECONDITION

別表記: 9 · google.rpc.Code.FAILED_PRECONDITION

コード FAILED_PRECONDITION · Google APIs / gRPCが報告した問題です。

システムが操作の実行に必要な状態にないため、操作は拒否されました。 たとえば、削除されるディレクトリが空ではない、rmdir 操作がディレクトリ以外に適用されている、などです。サービス実装者は、次のガイドラインを使用して、`FAILED_PRECONDITION`、`ABORTED`、および `UNAVAILABLE` のいずれかを決定できます。 (a) クライアントが失敗した呼び出しのみを再試行できる場合は、`UNAVAILABLE` を使用します。 (b) クライアントがより高いレベルで再試行する必要がある場合は、「ABORTED」を使用します。たとえば、クライアント指定のテスト アンド セットが失敗した場合、クライアントは読み取り、変更、書き込みシーケンスを再開する必要があることが示されます。 (c) システム状態が明示的に修正されるまでクライアントが再試行しない場合は、「FAILED_PRECONDITION」を使用します。たとえば、ディレクトリが空ではないために「rmdir」が失敗した場合、ファイルがディレクトリから削除されない限りクライアントは再試行しないため、「FAILED_PRECONDITION」が返されるはずです。 HTTP マッピング: 400 不正なリクエスト

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level. For example, when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. For example, if an "rmdir" fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. HTTP Mapping: 400 Bad Request

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。