- 概要
- GraphQL エラーを検出する
- 一般的な GraphQL エラーメッセージ
- Authorization error
- Data integrity or validation error
- Internal error
- Internal server error
- JobIdentifierInput must specify one of indeedJobKey, employerJobId, or atsApplicationIdentifier
- JobSeekerIdentifierInput must specify either indeedJobSeekerKey or emailAddress
- PartnerDispositionIdentifierInput must specify one of indeedApplyID, ittk, universalApplyId, or alternateIdentifier
- Unable to parse statusChangeDateTime
- Validation errors in batch requests
- Variable input has an invalid value error
- 一般的な GraphQL エラーコード
- BAD_USER_INPUT エラー
- FORBIDDEN エラー
- GRAPHQL_PARSE_FAILED エラー
- HTTP ステータスコード
- 関連情報
GraphQL エラーをトラブルシューティングする
GraphQL エラーをトラブルシューティングします。
概要
#GraphQL エラーをトラブルシューティングする方法について説明します。
GraphQL にアクセスする前に発生する可能性がある OAuth エラーのトラブルシューティングについては、OAuthエラーのトラブルシューティング を参照してください。
GraphQL を初めて利用する場合は、Apollo Odyssey: GraphQL Tutorials (新しいウィンドウで開きます) と、GraphQL 仕様の Errors (新しいウィンドウで開きます) を参照してください。
GraphQL エラーを検出する
#エラーを検出するには、HTTP ステータスコードと結果内の errors 配列を確認します。
HTTP ステータスコードが 200 でも、errors 配列が存在する場合はエラーが発生しています。
errors 配列には、エラーを説明する message フィールドと、エラーの code および classification を含む extensions が含まれます。次の例を参照してください。
{ "errors": [{ "message": "Description of error", "path": ["Path"], "extensions": { "code": "BAD_USER_INPUT", "classification": { "type": "ExtendedValidationError", "validatedPath": [ "patchEmployer", "input", "employerAttributes", "countrySpecificAttributes", 0, "websiteUrl" ], "constraint": "@DossierUrlConstraint" }, "serviceName": "company-data-api", "stacktrace": [ "Stack trace" ] } }], "data": { "patchEmployer": null }}各値の意味は次のとおりです。
| 値 | 説明 |
|---|---|
errors.message | エラーを説明するメッセージです。 一般的な GraphQL エラーメッセージを参照してください。 例: |
errors.path | エラーが発生したパスです。 例: |
errors.extensions | デバッグ用のフィールドです。 |
errors.extensions.code | エラーコードです。 |
errors.extensions.code.validatedPath | 問題の原因となったフィールドへのパスです。 |
errors.extensions.code.constraint | エラーの原因となったスキーマ内の制約です。 |
errors.extensions.classification | フィールド制約によるエラーの詳細です。 |
一般的な GraphQL エラーメッセージ
#リクエストが失敗すると、data フィールドは null になり、errors フィールドに問題の内容が含まれます。
errors フィールドには、message フィールドと code フィールド、およびその他のフィールドが含まれます。
一般的なエラーメッセージは次のとおりです。
- Authorization Error
- Data Integrity or Validation Error
- Internal Error
- Internal server error
- JobIdentifierInput must specify one of indeedJobKey, employerJobId, or atsApplicationIdentifier
- JobSeekerIdentifierInput must specify either indeedJobSeekerKey or emailAddress
- PartnerDispositionIdentifierInput must specify one of indeedApplyID, ittk, universalApplyId, or alternateIdentifier
- Unable to parse statusChangeDateTime
- Validation errors in batch requests
- Variable input has an invalid value error
Authorization error
#message | Authorization Error |
|---|---|
| 概要 | さまざまな理由で発生する可能性があります。Indeed はこのエラーを厳密に監視しています。 詳細については、Indeed にお問い合わせください。 |
Data integrity or validation error
#message | Data Integrity or Validation Error |
|---|---|
| 概要 | API への入力として渡したフィールドを正常に処理できない場合に発生することがあります。 入力値が有効であることを確認してください。問題が続く場合は、Indeed にお問い合わせください。 |
Internal error
#message | Internal Error |
|---|---|
| 概要 | さまざまな理由で発生することがあります。 Indeed はこのエラーを厳密に監視しています。詳細については、Indeed Support にお問い合わせください。 |
Internal server error
#Indeed はサービスの 100% 稼働を目指していますが、エラーが発生し、サービス呼び出しが失敗することがあります。たとえば、次のサービスやコンポーネントが失敗することがあります。
- Indeed インフラストラクチャ内のバックエンドサービス。
- クライアントとサーバー間のネットワーク。
- その間にあるもの。
一般に、この種のエラーに対しては基本的な再試行ロジックを実装することをお勧めします。エラーが断続的な場合は、再試行すると解消することがあります。問題が続く場合は、サーバー側に実際の問題がある可能性があります。その場合は、Indeed サポートにお問い合わせください。
Indeed PLUS APIを呼び出すと、5,000 ミリ秒後にタイムアウトとなります。
JobIdentifierInput must specify one of indeedJobKey, employerJobId, or atsApplicationIdentifier
#message | JobIdentifierInput must specify one of indeedJobKey, employerJobId, or atsApplicationIdentifier |
|---|---|
| 概要 | 応募者ステータスを処理できるようにするため、これらの識別子のうち少なくとも 1 つを指定してください。
|
JobSeekerIdentifierInput must specify either indeedJobSeekerKey or emailAddress
#message | JobSeekerIdentifierInput must specify either indeedJobSeekerKey or emailAddress |
|---|---|
| 概要 | 応募者ステータスを処理できるようにするため、これらの識別子のうち少なくとも 1 つを指定してください。
|
PartnerDispositionIdentifierInput must specify one of indeedApplyID, ittk, universalApplyId, or alternateIdentifier
#message | PartnerDispositionIdentifierInput must specify one of indeedApplyID, ittk, universalApplyId, or alternateIdentifier |
|---|---|
| 概要 | 応募者ステータスを処理できるようにするため、これらの識別子のうち少なくとも 1 つを指定してください。
|
Unable to parse statusChangeDateTime
#message | Unable to parse statusChangeDateTime |
|---|---|
| 概要 |