For Workers & Pages, what is the name of the domain?
What is the error number?
1002
What is the error message?
error parsing input
What is the issue or error you’re encountering
The json schema for logpush resources mentions that the output_options struct ( Cloudflare API | Logpush › Jobs › OutputOptions ) has a property ‘CVE-2021-4428’. Attempts to create a logpush using the API request containing the mentioned property are failing. The reason is that the correct property name, as expected by the API, is actually ‘CVE-2021-44228’ (notice the extra ‘2’)
What steps have you taken to resolve the issue?
Using the corrected property name (‘CVE-2021-44228’ instead of ‘CVE-2021-4428’) in the API request json-body works as expected. However, this is negatively affecting all Cloudflare SDKs built on top of the wrong schema. The actual place where I noticed it is the Cloudflare Terraform provider, which is unable to manage logpush resources because it generates invalid API requests.
What are the steps to reproduce the issue?
Simply try to create a zone-scoped logpush by doing a POST to https://api.cloudflare.com/client/v4/zones/<your_zone>/logpush/jobs with a json body according to the schema:
{
“dataset”: “http_requests”,
“destination_conf”: “s3://your_s3_bucket/logs/{DATE}?region=eu-west-1”,
“frequency”: “low”,
“max_upload_interval_seconds”: 30,
“max_upload_records”: 100000,
“output_options”: {
“CVE-2021-4428”: false
}
}
and you get the “error parsing input” response. Now change the CVE-2021-4428 to CVE-2021-44228 and notice how the “error parsing input” is gone.