调试
LF-DevJourney
这个作者很懒,什么都没留下…
展开
-
npm,cnpm install报:Error: certificate has expired at TLSSocket.onConnectSecure
npm install时,出现certificate has expired. npm淘宝镜像源证书过期。原创 2024-01-26 09:01:46 · 2775 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘pkg_resources‘
Fix Python ModuleNotFoundError: No module named 'pkg_resources'原创 2024-01-22 21:15:00 · 1168 阅读 · 0 评论 -
使用pytorch时报错:AttributeError: module ‘torchvision.transforms‘ has no attribute ‘Scale‘
使用pytorch时报错:AttributeError: module ‘torchvision.transforms‘ has no attribute ‘Scale‘, 问题分析与应对方法。原创 2024-01-17 11:50:56 · 515 阅读 · 0 评论 -
记录由客户端http请求原因引起的5xx响应问题排查过程
看到 http 状态码 5xx,很多开发者第一感觉就是服务端的问题,其实并不全是。下面我遇到的问题就是一个例外。原创 2024-01-12 16:29:20 · 1273 阅读 · 1 评论 -
Nginx “Primary script unknown“?定位及排除方法。
详情参考How to debug “FastCGI sent in stderr: Primary script unknown while reading response header from upstream” and find the actual error message?方案1,开启upstream(php-fpm)日志。通过日志查看处理请求的脚本文件路径。php-fpm.d/www.confaccess.log = /var/log/$pool.access.logtail -f原创 2021-04-13 14:22:32 · 486 阅读 · 0 评论