Closed sutatoruta closed 1 year ago
Even if AWS credentials config values are nil, $config.has_key? :aws returns true. It might not be working as expected: https://github.com/tyage/slack-patron/blob/c86c4777b9d2642c8171f19d07214aeb6d45b995/viewer/viewer.rb#L13-L22
$config.has_key? :aws
Since $singer is not nil, presigned_url is called without AWS credentials set and throws Aws::Sigv4::Errors::MissingCredentialsError: https://github.com/tyage/slack-patron/blob/c86c4777b9d2642c8171f19d07214aeb6d45b995/viewer/viewer.rb#L29-L56
$singer
presigned_url
Aws::Sigv4::Errors::MissingCredentialsError
I fixed this problem by correcting $config.has_key? :aws to $config[:aws]&.values.all?.
$config[:aws]&.values.all?
thank you! looks fine!
Even if AWS credentials config values are nil,
$config.has_key? :aws
returns true. It might not be working as expected: https://github.com/tyage/slack-patron/blob/c86c4777b9d2642c8171f19d07214aeb6d45b995/viewer/viewer.rb#L13-L22Since
$singer
is not nil,presigned_url
is called without AWS credentials set and throwsAws::Sigv4::Errors::MissingCredentialsError
: https://github.com/tyage/slack-patron/blob/c86c4777b9d2642c8171f19d07214aeb6d45b995/viewer/viewer.rb#L29-L56I fixed this problem by correcting
$config.has_key? :aws
to$config[:aws]&.values.all?
.