在使用 FastApi 测试接口时,在 swagger 中能正常请求的接口在客户端请求时报错 {“code”: 405, “status”: “error”, “message”: “Method Not Allowed”} ,来看下是怎么 […]
分类: 编程笔记
工作学习中的一些代码
python部署rasa时遇到的几个报错
在 linux 服务器使用全新安装 python3.8 部署 rasa 3.5.10 ,期间遇到几个问题: 在使用 spacy 时报错: issubclass() arg 1 must be a class File “/usr/lib/p […]
git错误Your configuration specifies to merge with the ref xxxx
在分支 master 执行 git pull 的时候,提示错误: Your configuration specifies to merge with the ref ‘refs/heads/release/v20230413.1’ fro […]
在top命令中使用关键字过滤进程
Linux 的 top 命令行实用程序显示有关当前活动进程和系统资源的信息。实时查看 Linux 系统正在做什么,可以更轻松地找到使用大量资源的进程或简单地监视负载。例如,我们可以使用top来监控系统或特定进程的运行时间、内存使用情况、CP […]
github提示:Host key verification failed. fatal: Could not read from remote repository
在使用github仓库拉取代码时,有时候会出现RSA密钥的指纹对不上的情况,执行 git pull 等操作时出现类似以下提示: [root@test1]# git pull @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ […]
phpstorm 配置使用代码质量工具PHP CodeSniffer
Phpstorm 支持基于 phpcs 的质量检查工具 PHP CodeSniffer ,稍加配置就可以轻松实现代码规范化,代码规范化在多人协作的项目管理中尤为重要。 使用 Composer 安装 PHP_CodeSniffer 在开始之前 […]
phpstorm 配置PHP CS Fixer VALIDATE 报错
在 phpstorm 中 Quality Tools 中配置完 PHP CS Fixer ,点击 VALIDATE 验证时出现错误信息: cannot determine tool version, got ‘PHP CS Fixer 3. […]
在`WSL`中的`ubuntu`中安装`webbench`报错处理
在 WSL 中的 ubuntu 中安装 webbench 报错 fatal error: rpc/types.h: No such file or directory 。 webbench.c:21:10: fatal error: rpc […]