okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
737 stars 91 forks source link

Exception occurred with v0.18 in python 2.7 & python 3.7.1 #78

Closed mbayrak78 closed 4 years ago

mbayrak78 commented 4 years ago

Hi,

we just tried to use v0.18 and got this exception:

Traceback (most recent call last): File "/usr/local/bin/awscurl", line 11, in sys.exit(main()) File "/usr/local/lib/python3.7/site-packages/awscurl/awscurl.py", line 491, in main print(response.headers.encode('utf-8'), end='\n\n') AttributeError: 'CaseInsensitiveDict' object has no attribute 'encode'

okigan commented 4 years ago

@mbayrak78, please try the bugfix release v0.19

On Tue, Dec 3, 2019 at 2:03 AM mbayrak78 notifications@github.com wrote:

Hi,

we just tried to use v0.18 and got this exception:

Traceback (most recent call last): File "/usr/local/bin/awscurl", line 11, in sys.exit(main()) File "/usr/local/lib/python3.7/site-packages/awscurl/awscurl.py", line 491, in main print(response.headers.encode('utf-8'), end='\n\n') AttributeError: 'CaseInsensitiveDict' object has no attribute 'encode'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/okigan/awscurl/issues/78?email_source=notifications&email_token=AADUYXSABJ4U43EIWS2NYRTQWYVF5A5CNFSM4JUVHVFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5TT6AQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUYXQ4BHHIVEV3IH4IVJ3QWYVF5ANCNFSM4JUVHVFA .

mbayrak78 commented 4 years ago

@okigan thanks for the quick bug fix. v0.19 tested and it works +1