PayloadのベースURLが無効です
この問題が発生すると、APIは422 Unprocessable Contentを返します。typeはhttps://lingo.dev/docs/api/errors/payload-base-url-invalidです。すべてのエラーに共通する形式については、エラーとステータスコードを参照してください。
ベースURLには、https://cms.example.comのような、インターネット上に公開されたPayloadインスタンスのHTTPSアドレスを指定する必要があります。「<baseUrl>」はこの条件を満たしていません。ワーカーはプライベートネットワークにアクセスできないため、公開ホスト名でインスタンスを公開するか、インスタンスの手前にトンネルを設置してください。
フィールド#
レスポンス本文には、標準のメンバーであるtype、status、title、detailに加えて、以下のフィールドが含まれます。detailのテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストに置き換えて表示できます。
| フィールド | 型 |
|---|---|
baseUrl | string |
例#
json
{
"detail": "The base URL must be the https address of a Payload instance on the public internet, such as https://cms.example.com, and \"<baseUrl>\" is not. A Worker cannot reach a private network: expose the instance on a public hostname, or put a tunnel in front of it.",
"baseUrl": "<baseUrl>",
"type": "https://lingo.dev/docs/api/errors/payload-base-url-invalid",
"status": 422,
"title": "Payload base URL invalid"
}