scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.04k stars 507 forks source link

Errors when rendering zimuku.org #1155

Open crotoc opened 2 years ago

crotoc commented 2 years ago

First thank the developers of this great tool! I am trying to build up a subtitle downloading automation based on splash.

I am deploying a docker file: docker://scrapinghub/splash When rendering www.google.com, everything works. But it fails when rendering www.zimuku.org. The lua script used is like following:

function main(splash, args) assert(splash:go(args.url)) assert(splash:wait(5)) return { html = splash:html() } end

The error throwing is like:

{ "error": 400, "type": "ScriptError", "description": "Error happened while executing Lua script", "info": { "source": "[string \"function main(splash, args)\r...\"]", "line_number": 2, "error": "http404", "type": "LUA_ERROR", "message": "Lua error: [string \"function main(splash, args)\r...\"]:2: http404" } }

In the developer mode, I witness this: Screenshot 2022-05-08 213355

I am a newbie of splash. Please give me some suggestions about how to debug this. Thanks!

MADDY312 commented 2 years ago

same thing have you fixed this?

crotoc commented 2 years ago

No, give up. Try other methods but no luck at all.