Question

I'm trying to render adocument using docverter from httpie. All the examples are for Curl. I tried

http -f POST http://c.docverter.com/convert from=markdown to=html input_files@example.txt --output out.html

But the website throws an error

TypeError at /convert
can't convert Symbol into Integer

Was it helpful?

Solution

You had it pretty close. Your http invocation should look like this:

http --form -f POST http://c.docverter.com/convert from=markdown to=html input_files[]@example.md --output out.html && open out.html

While debugging I found a bad typo and shipped v1.0.1 and installed it on the public instance.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top