aws-sdk-rust
aws-sdk-rust copied to clipboard
The SQS example does not work
Describe the bug
The SQS example code does not work; it fails with an error code:
Error: Unhandled(Unhandled { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: CredentialsNotLoaded(CredentialsNotLoaded { source: "no providers in chain provided credentials" }), connection: Unknown } }), meta: ErrorMetadata { code: None, message: None, extras: None } })
Followed the README as is and cloned the code. Also an instruction in the README points to a prerequisites section, but the link to the README is broken and results in a 404
Expected Behavior
The sample code should work and the README text should be current
Current Behavior
The SQS example code does not work; it fails with an error code:
Error: Unhandled(Unhandled { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: CredentialsNotLoaded(CredentialsNotLoaded { source: "no providers in chain provided credentials" }), connection: Unknown } }), meta: ErrorMetadata { code: None, message: None, extras: None } })
Followed the README as is and cloned the code. Also an instruction in the README points to a prerequisites section, but the link to the README is broken and results in a 404
Reproduction Steps
- Copy paste the main.rs content in your project main.rs
- Copy the pertinent bits of the toml file into your toml file
- cargo run
Possible Solution
No response
Additional Information/Context
No response
Version
├── aws-config v1.1.1
│ ├── aws-credential-types v1.1.1
│ │ ├── aws-smithy-async v1.1.1
│ │ ├── aws-smithy-runtime-api v1.1.1
│ │ │ ├── aws-smithy-async v1.1.1 (*)
│ │ │ ├── aws-smithy-types v1.1.1
│ │ ├── aws-smithy-types v1.1.1 (*)
│ ├── aws-http v0.60.1
│ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-types v1.1.1
│ │ │ ├── aws-credential-types v1.1.1 (*)
│ │ │ ├── aws-smithy-async v1.1.1 (*)
│ │ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ │ ├── aws-smithy-types v1.1.1 (*)
│ ├── aws-runtime v1.1.1
│ │ ├── aws-credential-types v1.1.1 (*)
│ │ ├── aws-http v0.60.1 (*)
│ │ ├── aws-sigv4 v1.1.1
│ │ │ ├── aws-credential-types v1.1.1 (*)
│ │ │ ├── aws-smithy-http v0.60.1
│ │ │ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ │ │ ├── aws-smithy-types v1.1.1 (*)
│ │ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-smithy-async v1.1.1 (*)
│ │ ├── aws-smithy-http v0.60.1 (*)
│ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-types v1.1.1 (*)
│ ├── aws-sdk-sso v1.9.0
│ │ ├── aws-credential-types v1.1.1 (*)
│ │ ├── aws-http v0.60.1 (*)
│ │ ├── aws-runtime v1.1.1 (*)
│ │ ├── aws-smithy-async v1.1.1 (*)
│ │ ├── aws-smithy-http v0.60.1 (*)
│ │ ├── aws-smithy-json v0.60.1
│ │ │ └── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-smithy-runtime v1.1.1
│ │ │ ├── aws-smithy-async v1.1.1 (*)
│ │ │ ├── aws-smithy-http v0.60.1 (*)
│ │ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-types v1.1.1 (*)
│ ├── aws-sdk-ssooidc v1.9.0
│ │ ├── aws-credential-types v1.1.1 (*)
│ │ ├── aws-http v0.60.1 (*)
│ │ ├── aws-runtime v1.1.1 (*)
│ │ ├── aws-smithy-async v1.1.1 (*)
│ │ ├── aws-smithy-http v0.60.1 (*)
│ │ ├── aws-smithy-json v0.60.1 (*)
│ │ ├── aws-smithy-runtime v1.1.1 (*)
│ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-types v1.1.1 (*)
│ ├── aws-sdk-sts v1.9.0
│ │ ├── aws-credential-types v1.1.1 (*)
│ │ ├── aws-http v0.60.1 (*)
│ │ ├── aws-runtime v1.1.1 (*)
│ │ ├── aws-smithy-async v1.1.1 (*)
│ │ ├── aws-smithy-http v0.60.1 (*)
│ │ ├── aws-smithy-json v0.60.1 (*)
│ │ ├── aws-smithy-query v0.60.1
│ │ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-smithy-runtime v1.1.1 (*)
│ │ ├── aws-smithy-runtime-api v1.1.1 (*)
│ │ ├── aws-smithy-types v1.1.1 (*)
│ │ ├── aws-smithy-xml v0.60.1
│ │ ├── aws-types v1.1.1 (*)
│ ├── aws-smithy-async v1.1.1 (*)
│ ├── aws-smithy-http v0.60.1 (*)
│ ├── aws-smithy-json v0.60.1 (*)
│ ├── aws-smithy-runtime v1.1.1 (*)
│ ├── aws-smithy-runtime-api v1.1.1 (*)
│ ├── aws-smithy-types v1.1.1 (*)
│ ├── aws-types v1.1.1 (*)
├── aws-sdk-sqs v1.9.0
│ ├── aws-credential-types v1.1.1 (*)
│ ├── aws-http v0.60.1 (*)
│ ├── aws-runtime v1.1.1 (*)
│ ├── aws-smithy-async v1.1.1 (*)
│ ├── aws-smithy-http v0.60.1 (*)
│ ├── aws-smithy-json v0.60.1 (*)
│ ├── aws-smithy-runtime v1.1.1 (*)
│ ├── aws-smithy-runtime-api v1.1.1 (*)
│ ├── aws-smithy-types v1.1.1 (*)
│ ├── aws-types v1.1.1 (*)
Environment details (OS name and version, etc.)
Linux Raspbian on Raspberry Pi 4
Logs
No response
The README links is supposed to point to here. I'm working on getting this updated.
After you make sure you have your credentials set up correctly you will also need to comment out line 54 of the sample:
.message_group_id(&message.group)
This is because that the group id is only needed for FIFO queues as noted in the docs here Please let me know if you have any other problems running the sample.
Thanks @jmklix, removed the group bit and things progressed - you may close the issue once the README is updated to point to the correct link