question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTP Error 400 (Bad Request) - Type: ScriptError -> LUA_INIT_ERROR

See original GitHub issue

After installing manually Splash manually on Ubuntu Server 14.04, I tried to request on browser and it raised the error as below:

{
    "error": 400,
    "description": "Error happened while executing Lua script",
    "info": {
        "message": "...me/ryan/splash-master/splash/lua_modules/sandbox.lua:243: bad argument #1 to 'load' (function expected, got string)",
        "type": "LUA_INIT_ERROR"
    },
    "type": "ScriptError"
}

Lua version: 5.2.4

I will appreciate any help from you.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
immerrrcommented, Aug 29, 2016

@kmike I think Splash should err out on startup when detecting Lua 5.1 and before.

2reactions
immerrrcommented, Aug 29, 2016

Lupa still uses Lua5.1 as shown in your output:

2016-08-29 10:00:06.127538 [-] Qt 5.2.1, PyQt 5.2.1, WebKit 537.21, sip 4.15.5, Twisted 16.2.0, Lua 5.1

Did you check that pip install lupa ... actually reinstalled/rebuilt the package? You might need --force-reinstall flag for that, so that it becomes pip install -I --force-reinstall --upgrade ...

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found