Skip to content

TypeError: not all arguments converted during string formatting #48

@Lyuk

Description

@Lyuk

this is code ;

url = 'http://httpbin.org/post'
files = {'file': ('report.csv', 'some,data,to,send\nanother,row,to,send\n')}
r = requests.post(url, files=files)

this is error:
File "D:\Python27\lib\site-packages\human_curl\utils.py", line 306, in make_curl_post_files
result.append((k, checker(k2)))
File "D:\Python27\lib\site-packages\human_curl\utils.py", line 297, in checker
raise RuntimeError("File %s doesn't exist" % v)
TypeError: not all arguments converted during string formatting

not requests compatibility ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions