[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Missing THttpClient.lua in Thrift binary unpack fails
- From: Daniel Rufus Kaldheim <daniel@...>
- Date: Tue, 27 May 2014 19:19:35 +0200
I'm fairly fresh in both Thrift and Lua, and trying to write the
missing THttpClient.lua file for a project I'm working on.
I have managed to send data and to receive data through the
THttpClient:flush() function, but it stops there.
The problem seems to be in the THttpClient:read() function where it
reads part of the data that came through THttpClient:flush().
2014/05/27 09:48:17 [error] 5535#0: *28 lua entry thread aborted:
runtime error: /home/user/thrift/lib/lua/TBinaryProtocol.lua:225: bad
argument #1 to 'bunpack' (Invalid input string size.)
stack traceback:
coroutine 0:
[C]: in function 'bunpack'
/home/user/thrift/lib/lua/TBinaryProtocol.lua:225: in function 'readI32'
/home/user/thrift/lib/lua/TBinaryProtocol.lua:131: in function
'readMessageBegin'
/home/user/mpd-lua/services_ClientApiLoginService.lua:69: in
function 'simpleLogin'
The THttpClient.lua file:
https://gist.github.com/danielkaldheim/45f425fdfdd11913ab3b
Is there anyone that can help me?
Thanks!
- Daniel Rufus Kaldheim