treeform/puppy

exception: convert from VT_ARRAY(1D)|VT_UI1 to integer

alexisad opened this issue · 2 comments

Windows 10

main.nim:

import puppy

let req = Request(
    url: parseUrl("http://www.istrolid.com"),
    verb: "get",
    headers: @[Header(key: "Auth", value: "1")]
)
let res = fetch(req)

Documents\nimapps\puppy_test\main.nim(8) main
.nimble\pkgs\puppy-1.0.2\puppy.nim(100) fetch
.nimble\pkgs\winim-3.6.0\winim\com.nim(815) variantConverterToInt
.nimble\pkgs\winim-3.6.0\winim\com.nim(741) fromVariant
Error: unhandled exception: convert from VT_ARRAY(1D)|VT_UI1 to integer [VariantConversionError]
Error: execution of an external program failed: 'Documents\nimapps\puppy_test\main.exe '

I think we fixed it with, 0a4f93e please update?

Hi @treeform ,

thanks a lot!
It is working now without exception.