随笔 - 229  文章 - 0  评论 - 10  阅读 - 26万 

随笔分类 -  报错示例收集

Flask报错:AssertionError: View function mapping is overwriting an existing endpoint function: inner
摘要:源代码如下, 启动报错 from flask import Flask # 实例化一个Flask对象 app = Flask(__name__) # 打印默认配置信息 # 引入开发环境的配置 app.config.from_object('settings.DEV') # 引入生产环境的配置 # a 阅读全文
posted @ 2020-02-13 11:14 显示账号 阅读(558) 评论(0) 推荐(0) 编辑
fabric报错:Fatal error: run() received nonzero return code 1 while executing!
摘要:今天在使用fabric远程安装rpm时,一直报:Fatal error: run() received nonzero return code 1 while executing! 这看起来也是没笔病呀,但fabric就是这么蛋疼, 它在执行过程中, 如果执行命令返回非零, 就会中断后面的逻辑. 解 阅读全文
posted @ 2019-12-23 23:21 显示账号 阅读(1555) 评论(0) 推荐(1) 编辑
python编程中的一个经典错误之list引用
摘要:请看下面代码 class User: def __init__(self, name, hobby=[]): self.name = name self.hobby = hobby def add_hobby(self, hobby): self.hobby.append(hobby) def re 阅读全文
posted @ 2019-12-14 22:38 显示账号 阅读(494) 评论(0) 推荐(0) 编辑
java.nio.channels.IllegalBlockingModeException
摘要:报错信息如下: Exception in thread "main" java.nio.channels.IllegalBlockingModeException at java.nio.channels.spi.AbstractSelectableChannel.register(Abstract 阅读全文
posted @ 2019-11-30 17:47 显示账号 阅读(1379) 评论(0) 推荐(0) 编辑
springboot2集成redis5报错:io.lettuce.core.RedisException: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected
摘要:报错信息如下: Caused by: io.lettuce.core.RedisException: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected mode because protect 阅读全文
posted @ 2019-11-19 22:31 显示账号 阅读(5367) 评论(0) 推荐(0) 编辑
一次服务器CPU占用100%的问题排查
摘要:今天写了一段垃圾代码,然后上服务器上运行,cpu瞬间飙到了100%,现记录一下问题排除过程~ 1. 问题代码 2. top 3. 查找问题 3.1 top -Hp 18571, 找出最耗cpu的线程,结果发现18584是就耗了99.9% 3.2 将十进制的线程号转成十六进制 printf "0x%x 阅读全文
posted @ 2019-10-22 22:17 显示账号 阅读(2447) 评论(0) 推荐(0) 编辑
Feign调用远程服务报错:Caused by: java.lang.IllegalStateException: Method getMemberInfo not annotated with HTTP method type (ex. GET, POST)
摘要:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl': Unsatisfied dependency expressed t 阅读全文
posted @ 2018-09-16 14:25 显示账号 阅读(8320) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示