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

SDK throw ArgumentError when the "workgroup_name" input is valid in Aws::RedshiftDataAPIService::Client #2903

Closed
ch0ngxian opened this issue Aug 26, 2023 · 3 comments
Labels
guidance Question that needs advice or information.

Comments

@ch0ngxian
Copy link

Describe the bug

I trying to call Redshift data API from my API server. But keep getting the ArgumentError stating "unexpected value at params[:workgroup_name]" while the workgroup_name string is valid.

I had tried to use the same params in AWS cli and it successfully return the result without throwing error.

Expected Behavior

Expected to be returning response of databases list in JSON format just like in AWS cli.
Screenshot 2023-08-26 at 7 24 19 PM

Current Behavior

Current is getting ArgumentError
Screenshot 2023-08-26 at 7 29 33 PM

Reproduction Steps

    client = Aws::RedshiftDataAPIService::Client.new(
      region: 'ap-southeast-1',
      credentials: Aws::Credentials.new(
        Rails.application.credentials.config[:aws_redshift_key],
        Rails.application.credentials.config[:aws_redshift_secret]
      )
    )

    response = client.list_databases(
      database: "dev",
      workgroup_name: "arn:aws:redshift-serverless:ap-southeast-1:xxxx:workgroup/xxxx-xxx-xx-xx-xx"
    )

Possible Solution

No response

Additional Information/Context

No response

Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version

aws-sdk-redshiftdataapiservice

Environment details (Version of Ruby, OS environment)

Ruby version: 3.1.2. OS: Ubuntu 18.04.6 LTS

@ch0ngxian ch0ngxian added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 26, 2023
@mullermp
Copy link
Contributor

Are you using the most recent version of the gem? 1.31.0

@ch0ngxian
Copy link
Author

Thanks for the reply. Just noticed originally I using older version of aws-sdk-redshiftdataapiservice gem. Upgrading to latest version solved the issue.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@mullermp mullermp added guidance Question that needs advice or information. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

2 participants