Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] TypeError on flowFramework create API call #989

Open
MattyChance opened this issue Mar 3, 2025 · 0 comments
Open

[BUG] TypeError on flowFramework create API call #989

MattyChance opened this issue Mar 3, 2025 · 0 comments

Comments

@MattyChance
Copy link

What is the bug?

Opensearch FlowFramework does not seem to respect the required type of body defined in the lib.

export type FlowFrameworkCreate = {
  description?: string;
  name: string;
  use_case?: string;
  version?: version;
  workflows?: Record<string, any>;
}

How can one reproduce the bug?

Just create an AwsSigv4Auth opensearch client and use the client api:

        const sigV4Client = new Client({
            auth: {
                credentials: {
                    accessKeyId: my_accessKeyId,
                    secretAccessKey: my_secretKey,
                    sessionToken: my_sessionToken,
                },
                region: 'us-region',
                service: 'es',
            },
            node: myNode
        });

        await sigV4Client.flowFramework.create({ body });

What is the expected behavior?

As long as the body is in the required format, it should work.

I looked into the library code and it seems like the body object is not serialized but i am unable to find out how the libraries are deciding what to serialized.

What is your host/environment?

MacOS 14.4.1
Node 20
Opensearch 3.0.0

Do you have any screenshots?

Image

Do you have any additional context?

Add any other context about the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant