Lua خرابي: bad argument #1 to 'mw.text.jsonDecode' (string expected, got nil).

Pulls data from Wikipedia:AutoWikiBrowser/CheckPage/VersionJSON


local p = {}

function p.main( frame )
    local version = mw.title.makeTitle( 'Wikipedia', 'AutoWikiBrowser/CheckPage/VersionJSON' )
    
    local decoded = mw.text.jsonDecode( version:getContent() )
    local output = 'Current Version: ' .. decoded.currentversion .. '<br />'
    output = output .. 'Newest Version: ' .. decoded.newestversion .. '<br />'
    return output
end

return p