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

Bruno not support AWS SDK v3 well #3704

Open
2 tasks done
taodawn opened this issue Dec 29, 2024 · 0 comments
Open
2 tasks done

Bruno not support AWS SDK v3 well #3704

taodawn opened this issue Dec 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@taodawn
Copy link

taodawn commented Dec 29, 2024

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

It seems Bruno doesn't support AWS SDK v3 very well. I'm attemping to use AWS SDK v3 in a Bruno script. but I encounter a ReferenceError: URL is not defined. error. However, the script works fine when I use AWS SDK v2 instead

.bru file to reproduce the bug

script:pre-request {
  process.env.AWS_PROFILE='default'
   const { STSClient, AssumeRoleCommand } = require('@aws-sdk/client-sts');
   const client = new STSClient({region: "cn-northwest-1"});
  
    const params={
      RoleArn: "xxxxxxxxxxxx", 
      RoleSessionName: "test_session", 
      Region: "cn-northwest-1"
    }
    const command = new AssumeRoleCommand(params);
    await client.send(command);
 
}

Screenshots/Live demo link

image
@taodawn taodawn added the bug Something isn't working label Dec 29, 2024
@ganesh-bruno ganesh-bruno self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants