Skip to content

AWS Roles Anywhere error when call startStreamTranscription function. #1669

@dauid64

Description

@dauid64

Describe the bug

I use this library in Ktor project. When i use profile credentials with default profile everything works fine, but when i use with my profile rolesanywhere i receive follow erro when call startStreamTranscription function.

The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

I tested using Python code and code works with my roles anywhere credential.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected behavior

Can call TranscribeStreamingClient with roles anywhere credentials.

Current behavior

The response when i call startStreamTranscription function with profile anywhere contains this erro:

The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

Steps to Reproduce

Dependencies:

aws-sdk-transcribestreaming = { group = "aws.sdk.kotlin", name = "transcribestreaming", version.ref = "aws-sdk-kotlin-version" }
implementation(libs.aws.sdk.transcribestreaming)

Configurate Client with anywhere credential:

TranscribeStreamingClient {
        region = AppConfig.AWS_REGION
        credentialsProvider = ProfileCredentialsProvider(
                profileName = "rolesanywhere"
            )
        }

Call the startStreamTranscription function.

Possible Solution

No response

Context

No response

AWS SDK for Kotlin version

1.5.24

Platform (JVM/JS/Native)

jvm

Operating system and version

Windows and Ubuntu

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions