Open MichaelOhn opened 3 years ago
This is so true i just tried it now and i am getting the same error, can't i use the requests library directly
Per https://github.com/psf/requests/issues/4333#issuecomment-335677895, the python library Requests "tightened its interface to only allow header values to be strings".
An older version of Requests (e.g. 2.3.0) works, but I wouldn't recommend using it :-/
EDIT: See https://github.com/resy/coinbase_python3/compare/master...IAmADoctorYes:patch-1 for a working patch
Per psf/requests#4333 (comment), the python library Requests "tightened its interface to only allow header values to be strings".
An older version of Requests (e.g. 2.3.0) works, but I wouldn't recommend using it :-/
EDIT: See master...IAmADoctorYes:patch-1 for a working patch
that would not help.
for header in headers.items():
AttributeError: 'str' object has no attribute 'items'
was there ever a resolution?
No, this code is for the older API, it doesn't take into account new auth requirements documented here. If you go to the PR referenced above and check the conversation you will see some discussion that even with that fix it wont work. Someone needs to update this to the new API :-(
Hi,
After following the installation step from your readme file and trying to execute the following code:
I get the following exception:
System info:
Could I have any advice of what I would be doing wrong ?
Best regards,
Mike O.