Closed ccinv closed 4 years ago
Could be related to/the same as https://github.com/luvit/lit/issues/200#issuecomment-277139210 if you're running it using luvit
.
Not surprisingly, simply removing the assertion does not fix coro-http for me. It just allows for mismatched types to be used incorrectly:
coro-wrapper.lua:82: attempt to compare number with string
Definitely looks like the same issue.
For now you can't use the coro-* 3.x modules with luvit since it's internal http-codec overrides the 3.x one your app uses.
Luvi apps work great though if that's an option.
Should be fixed with luvit/luvit#980
I ran the example server and get such error
Then I edited coro-wrapper.lua and deleted
assert(type(newIndex) == "number", "index must be a number if set")
, it works.Here newIndex is a string not number.