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

cognitect.aws.client.api/invoke hangs when it can't find a credentials profile #124

Closed
dchelimsky opened this issue Feb 12, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@dchelimsky
Copy link
Contributor

Dependencies

{:deps {com.cognitect.aws/api       {:mvn/version "0.8.430"}
        com.cognitect.aws/endpoints {:mvn/version "1.1.11.718"}
        com.cognitect.aws/s3        {:mvn/version "784.2.593.0"}}}

Description with failing test case

cognitect.aws.client.api/invoke hangs when it can't find a credentials profile

(require
 '[cognitect.aws.client.api :as aws]
 '[cognitect.aws.credentials :as aws-creds])

(def s3 (aws/client {:api :s3
                     :credentials-provider 
                     (aws-creds/profile-credentials-provider "does-not-exist")}))

(aws/invoke s3 {:op :ListBuckets})
;; hangs
@dchelimsky dchelimsky added the bug Something isn't working label Feb 12, 2020
@dchelimsky
Copy link
Contributor Author

This happens because the credentials-profile returns nil and tries and fails to put that on a channel.

@dchelimsky dchelimsky added this to In progress in AWS API Project Feb 12, 2020
@dchelimsky dchelimsky moved this from In progress to Ready to release in AWS API Project Feb 14, 2020
@dchelimsky
Copy link
Contributor Author

Fixed in 0.8.437

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
AWS API Project
  
Ready to release
Development

No branches or pull requests

1 participant