Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

CreateUser return ErrorResponse instead of Error #378

@yaso195

Description

@yaso195

When I try to run

    ```params := &iam.CreateUserInput{
        UserName: aws.String("temp_user"),
        Path:     aws.String("/"),
    }

    if iamres, err := iamcli.CreateUser(params); err != nil {
        fmt.Println(err)
    } else {
        fmt.Println(iamres)
    }```

I am getting the following error, even though my iamcli is configured correctly.
SerializationError: failed to decode query XML error response caused by: expected element type <ErrorResponse> but have <Error>

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