Web browser: ---
            Bug ID: 60386
           Summary: Install luasocket for all sister projects to use with
           Product: Wikimedia
           Version: wmf-deployment
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
    Classification: Unclassified
   Mobile Platform: ---

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("";)
      return e

    return p

Invoke code:

Expected result:
    Returned 'host not found' or some like.

Actual result:
    Returned "script error".

    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()

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to