Author: gryllida
Description:
Lua code:
- loads the HTTP module and any libraries it requires local http = require("socket.http")
local p = {}
function p.main(frame) r, e = http.request("http://wrong.host/") return e end
return p
Invoke code:
{{#invoke:Foo|main}}
Expected result:
Returned 'host not found' or some like.
Actual result:
Returned "script error".
Rationale:
Retrieve API URLs contents using Lua, like it is now possible in JS. Note that there wouldn't be a high additional load, since the module would only be loaded when a Lua module is invoked, and only if it has a relevant require() statement.
Version: wmf-deployment
Severity: enhancement