gurted icon indicating copy to clipboard operation
gurted copied to clipboard

[BUG] Flumi not logging all errors.

Open MutantRabbit767 opened this issue 1 year ago • 0 comments

Describe the bug In #86, I talked about my issues with WebSocket. It turned out to be improper usage of the event callbacks. I made this mistake initially because of the documentation for WebSockets being wrong. I continued to make this mistake assuming it was just WebSockets not being properly implemented, but WebSockets actually work really well.

It turns out that the responses from these event callbacks are actually in the format of a table, instead of a string (as shown in the docs). when appending the table to a string Lua throws an error, but for some reason the error isn't shown inside Flumi's dev console. The only reason I found this out was because iamonfiya2 saw the error inside Godot when running my site sussybaka.fent.

To Reproduce Steps to reproduce the behavior:

  1. attach this event to a WebSocket from the documentation.
ws:on('message', function(data)
    trace.log('Received: ' .. data)
end)
  1. send a WebSocket message to wss://echo.websocket.org
  2. notice there isn't any errors despite appending a table to a string. also notice nothing is actually printed.

Expected behavior Flumi should throw error: [string ""]:2: attempt to concatenate string with table.

Desktop (please complete the following information):

  • OS: Linux
  • Version 1.0.2

MutantRabbit767 avatar Sep 14 '25 07:09 MutantRabbit767