如何在运行 Docker 上的 scrapy_splash 中修复 Lua 错误?

我为 scrapy splash 设置了 docker 镜像,并测试了许多网址,在尝试访问 url ( https://www.udemy.com/) 时,我遇到了错误

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

Error happened while executing Lua script

Lua error: [string "function main(splash, args) ..."]:2: http403

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