Skip to content

Error: request [/_transform] contains unrecognized parameter: [transformId] #1645

@cwiechmann

Description

@cwiechmann

🐛 Bug Report

Javascript transform API is not accepting transformId even it's documented here: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/8.0/api-reference.html#_transform_gettransform and was working well with version 7.x.y.
The same happens for all transform methods.

To Reproduce

Steps to reproduce the behavior:

The following code fails with the following error:

const client = new Client( { "some-elastic-config": "my-config" } );
client.transform.getTransform({ transformId: `myTransformId` });

Error:

ResponseError: illegal_argument_exception: [illegal_argument_exception] Reason: request [/_transform] contains unrecognized parameter: [transformId]
    at SniffingTransport.request (node_modules\@elastic\transport\lib\Transport.js:476:27)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Transform.getTransform (node_modules\@elastic\elasticsearch\lib\api\api\transform.js:72:16)
    at async putTransform (src\actions\transform.js:57:26)
    at async Object.method.action (src\index.js:659:19) {

Expected behavior

Using the parameter: transform_id it's working as expected. I expect the same behavior also when using transformId.

const client = new Client( { nodes: 'http://my-elasticsearch:9200'} );
client.transform.getTransform({ transform_id: `myTransformId` });

Your Environment

  • node version: 12.13.0
  • @elastic/elasticsearch version: >=@elastic/elasticsearch@8.0.0
  • os: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions