Python - Valueerror: Need More Than 1 Value To Unpack
Please check this question Python oauth2 - making request I am working with vimeo integration in my web application. Initially I got an oauth_signature and I had no problems(no err
Solution 1:
to be able to unpack a dictionary you would have to use the .items(), so the code would be like this:
for i, (value, params) in enumerate(headers.items()):
now since that is not your code and you can't change it, what the error is telling you is that the headers should not be a dictionary but a tuple (or a list), if you pass the header like this:
headers = [("Authorization", "Values")]
it should work.
EDIT: This doesn't works. Now the dictionary version {"Authorization": "Values"} works for me, maybe updating requests will help.
Post a Comment for "Python - Valueerror: Need More Than 1 Value To Unpack"