0

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

Colonel Panic
  • 132,665
  • 89
  • 401
  • 465

1 Answers1

1

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.

Pete Keen
  • 26
  • 1