turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Not able retriev files with wildcards along ljsyscall is installed

Open CheckTheFlowRyan opened this issue 3 years ago • 0 comments

In my index.html I am trying to load a js script (my.js) by:

<body>
<script type="text/javascript" charset="utf-8" src="my.js">
...
</body>

On the server I am using the following:

local webApp = turbo.web.Application:new({
    {"^/$", turbo.web.StaticFileHandler, "/var/www/html/index.html"},
    {"^/(.*js)$", turbo.web.StaticFileHandler, "/var/www/html/"},     
})

All the above works fine as long as I do not install ljsyscall. If I install ljsyscall via luarocks install ljsyscall , I do get following error message, even I do not use syscall at all: [E 2021/05/23 11:23:03] [web.lua] Could not read file; nil.

Once I remove ljsyscall with luarocks remove ljsyscall everthing works fine again.

CheckTheFlowRyan avatar May 23 '21 11:05 CheckTheFlowRyan