pllua-ng icon indicating copy to clipboard operation
pllua-ng copied to clipboard

Uncaught Lua error: bad argument #1

Open GrandFelix opened this issue 3 years ago • 2 comments

Hi,

on one of our servers we get next error PANIC: Uncaught Lua error: bad argument #1 to '?' (datum), it is very randomly and we cant reproduce it. Is there any option that we get more info in postgres logs so we can see where is the problem (line number etc.)? Is there any pllua config or something?

Thanks

GrandFelix avatar Oct 26 '22 03:10 GrandFelix

Sorry for the delayed response. That error shouldn't ever happen; the best way to diagnose it will be to get the stack trace (any PANIC error will result in a core dump if you enable those). Are you using the untrusted language and loading any modules?

RhodiumToad avatar Nov 03 '22 09:11 RhodiumToad

Hi. I did miss this comment. Sorry. No, we are not using untrusted lang. We only load one module local jsonb = require "pllua.jsonb"; Ok, I will check if we have enabled core dumps for PANIC errors on servers, if not, we will enable it and I will come back.

Thanks for your reply!

GrandFelix avatar Nov 25 '22 08:11 GrandFelix