I\'m trying to send an array(list) of requests to the WheniWork API using requests.post, and I keep getting one of two errors. When I send the list as a list, I get an unpac
I have a similar case but totally different solution, I've copied a snipped of code which looks like that:
resp_status, resp_data = requests.post(url, headers=headers,
json=payload, verify=False)
and this resulted in error :
ValueError: too many values to unpack (expected 2)
just assigning to one variable resolve the issue:
response = requests.post(url, headers=headers,
json=payload, verify=False)