GithubHelp home page GithubHelp logo

Comments (14)

kexue-z avatar kexue-z commented on June 18, 2024

推断几点:

  • 估计是网页没有载入出来。但是这些html基本都是本地的,所以资源应该没问题
  • 也有可能是playwright的内核无响应了,看看内存的占用情况
  • 可以自行参考playwright的文档写一个截图的代码,看看是否正常工作
  • 如果不行只能更换环境了,建议 docker 试试这个 内置了我一般用到的东西

from nonebot-plugin-htmlrender.

MeetWq avatar MeetWq commented on June 18, 2024

有挂代理吗,有没有可能是代理的原因

from nonebot-plugin-htmlrender.

kexue-z avatar kexue-z commented on June 18, 2024

有挂代理吗,有没有可能是代理的原因

确实 可能全局代理不通也会这样

from nonebot-plugin-htmlrender.

HolyFishhh avatar HolyFishhh commented on June 18, 2024

有挂代理吗,有没有可能是代理的原因

有挂代理吗,有没有可能是代理的原因

确实 可能全局代理不通也会这样

应该不是代理的问题,如果是代理问题的话应该一开始就不能用,我现在是正常运行了一两天这些插件后才出现上诉问题,刚才尝试了配置代理,还是相同的结果

from nonebot-plugin-htmlrender.

HolyFishhh avatar HolyFishhh commented on June 18, 2024

有挂代理吗,有没有可能是代理的原因

有挂代理吗,有没有可能是代理的原因

确实 可能全局代理不通也会这样

应该不是代理的问题,如果是代理问题的话应该一开始就不能用,我现在是正常运行了一两天这些插件后才出现上诉问题,刚才尝试了配置代理,还是相同的结果

shindan里将输出模式改成文本的话,可以正常运行,可以确定是screenshot的问题
尝试了一下卸载再重新安装,当使用 python -m playwright install 命令安装浏览器依赖时,没有任何提示,正常使用的话会显示下载浏览器的进度,有没有可能是这里出了问题
同时playwright文件中应该是缺东西了
QQ截图20220520015741

from nonebot-plugin-htmlrender.

kexue-z avatar kexue-z commented on June 18, 2024

没有提示可能是已经下好了

有没有试过 自己写一段截图的运行一下看看?

如果实在不行只能docker了

from nonebot-plugin-htmlrender.

HolyFishhh avatar HolyFishhh commented on June 18, 2024

没有提示可能是已经下好了

有没有试过 自己写一段截图的运行一下看看?

如果实在不行只能docker了

重装系统解决了,也不知道是哪里出的问题。
谢谢两位佬提供的帮助。

from nonebot-plugin-htmlrender.

HolyFishhh avatar HolyFishhh commented on June 18, 2024

悲报,刚启动没半个小时,再次出现了相同的问题
自己写了个截图方法正常运行,并截图
同时出现了一些新的报错
QQ图片20220520110916
Target page, context or browser has been closed(在logs中显示的,没有截图上)
程序中关闭了playwright后,再次正常。
看来是playwright卡死,我再观察观察卡死的原因吧。
是否可能是配置过低导致?我的服务器是2核2G

from nonebot-plugin-htmlrender.

kexue-z avatar kexue-z commented on June 18, 2024

我放弃思考了 快使用docker

from nonebot-plugin-htmlrender.

jinxx52 avatar jinxx52 commented on June 18, 2024

同样的情况,已经头疼很多天了。插件加载顺序更改一遍也是同样的报错

from nonebot-plugin-htmlrender.

kexue-z avatar kexue-z commented on June 18, 2024

可以详细说一下服务器是什么配置吗?如何复现等操作

from nonebot-plugin-htmlrender.

jinxx52 avatar jinxx52 commented on June 18, 2024

回头我自己写一个截图的插件试试,不自己动手确实不好理解,还是谢谢大佬了

from nonebot-plugin-htmlrender.

kexue-z avatar kexue-z commented on June 18, 2024

不建议使用系统自带py环境运行bot 建议使用miniconda或者poetry

from nonebot-plugin-htmlrender.

benx1n avatar benx1n commented on June 18, 2024

我这边有群友也复现了这个问题
使用sudo nb run必现playwright Timeout,直接nb run就没问题
多半是系统环境的问题,还是推荐使用conda管理)

from nonebot-plugin-htmlrender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.