
bugLog
pardon110
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
getPhoneNumber 响应 416
微信小程序响应416原创 2022-10-01 17:51:26 · 165 阅读 · 0 评论 -
Uncaught TypeError: route.children.some is not a function
报错Uncaught TypeError: route.children.some is not a function分析开始判断some有可能被重写,于是全文检索并没有猜测children 子路由并有可能不是一个正常的数组,果然路由少写一对中括号原创 2020-06-09 12:54:35 · 2351 阅读 · 0 评论 -
解决vscode 终端进程命令“C:\Windows\system32\cmd.exe ”无法启动 (退出代码: {2})
终端进程命令“C:\Windows\system32\cmd.exe ”无法启动 (退出代码: {2})这个问题与vscode无关,关闭本机装的360安全卫士即可原创 2020-06-08 22:28:22 · 11428 阅读 · 8 评论 -
is defined but never used eslint 警告
问题在使用vue-cli开发项目时,遇到未使用的变量,会报如下错误is defined but never used eslint...解决在项目根目录package.json 修改eslintConfig配置项 no-unused-vars 为 off 值即可解决。原创 2020-06-03 09:58:23 · 869 阅读 · 0 评论 -
panic: sync: negative WaitGroup counter
问题先看报错信息Table: 0 grass: 0 match: 0Apple smokes a cigaretteTable chooses paper: SandyTable: 0 grass: 1 match: 1Table: 0 grass: 1 match: 0Table: 0 grass: 0 match: 0Sandy smokes a cigarettepanic: sync: negative WaitGroup countergoroutine 6 [running原创 2020-05-14 15:54:22 · 4836 阅读 · 0 评论 -
illegal character:u+3000
原因代码中有全角空格,换而言之代码中存在中文空格 ,而中英文字符在计算机内的unicode编码是不一样的。三种空格unicode(\u00A0,\u0020,\u3000)\u00A0 不间断空格,主要用在office中,让一个单词在结尾处不会换行显示,快捷键ctrl+shift+space ;\u0020 半角空格(英文符号),代码中常用\u3000 全角空格(中文符号),中文...原创 2020-01-28 14:21:15 · 2666 阅读 · 0 评论 -
报错解析 [Vue warn]: You may have an infinite update loop in a component render function.
vue操作一个很有意思的报错[Vue warn]: You may have an infinite update loop in a component render function. 组件代码结构:<template> <span class=&a原创 2018-11-07 12:11:14 · 73623 阅读 · 8 评论 -
LOG.error: Invalid argument supplied for foreach()
LOG.error: Invalid argument supplied for foreach() 报错分析参数无效,提供的不是数组参数。原创 2018-11-06 10:10:57 · 357 阅读 · 0 评论 -
用http-server本地解决 to be served over an HTTP server
vue应用开发流程vue-cli构建项目骨架npm install安装依赖包npm run dev 开发调试代码npm run build生产环境代码问题执行第4步完成后,通常有如下小提示 Tip: built files are meant to be served over an HTTP server. Opening index.html over file:// ...原创 2018-10-06 12:15:47 · 3897 阅读 · 0 评论 -
org.hibernate.service.spi.ServiceException
报错The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.Exception in thread "main" org.hibernate.service.spi.ServiceExceptio...原创 2018-09-26 15:02:59 · 587 阅读 · 0 评论 -
java.lang.InstantiationException
报错14:28:52,478 ERROR ByteBuddyProxyFactory:96 - HHH000142: Bytecode enhancement failed: com.pardon.demo.hibernate.Employeejava.lang.InstantiationException: com.pardon.demo.hibernate.EmployeeHibernat...原创 2018-09-25 14:42:58 · 748 阅读 · 0 评论 -
let解决for循环中的闭包
场景闭包产生内部函数依赖了外部作用域变量,即内部持有外部引用不释放变量的本质其实就是一个占位符,其值才是真正操作对象值可以是各语言的标量,也可以是内存地址(即通俗的引用类型)var VS letlet 块级用域(ES5之前的js不存在块级作用域)在一个块级作用域内,let 声明 的变量只会在该区域内存续var 不存在块的问题与for的关系var 初始变量在...原创 2018-11-07 21:44:44 · 2106 阅读 · 0 评论 -
syntax error, unexpected '->' (T_OBJECT_OPERATOR)
laravel项目报如下错误ErrorException (E_ERROR)syntax error, unexpected '->' (T_OBJECT_OPERATOR) (View: D:\laragon323\www\lar57\blog57\resources\views\admin\partials\errors.blade.php) (View: D:\laragon323...原创 2019-03-12 10:05:34 · 5533 阅读 · 0 评论 -
WARNING: The `useMongoClient` option is no longer necessary in mongoose 5.x, please remove it.
场景:node 使用moogse模块连接mongodb,var mongoose = require('mongoose')// 连接新版本mongoose.connect('mongodb://127.0.0.1:27017/notes', { useMongoClient: true})报如下错误D:\code-base\node\shiyanlou\node_2&gt...原创 2019-03-08 11:51:43 · 3076 阅读 · 0 评论 -
"oauth-public.key" permissions are not correct, should be 600 or 660 instead of 666
场景在windows平台下,使用laraval/passport包,报错如下"oauth-public.key" permissions are not correct, should be 600 or 660 instead of 666..解决方案 $privateKey = new CryptKey('file://' . Passport::keyPath('oauth-pr...翻译 2019-04-25 17:04:40 · 1029 阅读 · 0 评论 -
scrapy runspider 导出json文件时乱码
scrapy runspider 导出乱码初步判断 ,输入输出编码不一致FEED_EXPORT_ENCODINGDefault: NoneThe encoding to be used for the feedIf unset or set to None (default) it uses UTF-8 for everything except JSON output, whic...原创 2019-05-25 21:44:20 · 513 阅读 · 0 评论 -
Class has no 'objects' member in django
场景在使用django时,源码如下from django.http import HttpResponsefrom .models import Destinationdef index(request): boards = Destination.objects.all() ...工具检测报错如下: Class 'Questionhas no objects...原创 2019-07-13 10:03:41 · 2499 阅读 · 0 评论 -
php7.2 在windows上 安装 imagick 扩展
流程类似于安装mysql,imagick是用C++写的,相当于php调用它的程序来操作图像数据。类似于C/S形式,要安装imagick程序本身,然后php通过扩展实现imagick的调用接口,从而达到php使用imagick应用程序的效果。安装imagick在操作系统(以windows)为例上的版本下载php7.2 操作对应的 php-imagick 扩展版本,置于 php 扩展文件夹...原创 2019-07-18 19:57:26 · 2279 阅读 · 0 评论 -
Warning: Use the `defaultValue` or `value` props on
需求写了一个Select的函数组件,代码如下 function Select({values, callback, disabled=false, readOnly=false,selected}){ return ( <select disabled={disabled}...原创 2019-08-06 17:11:35 · 1811 阅读 · 0 评论 -
Classpath entry *.jar will not be exported or published
报错Classpath entry *.jar will not be exported or published分析javaweb项目发布资源,引用了外部资源,但没有发布在web App libaries(web-inf/lib)下。解决办法直接将用包复制在web-inf/lib下。探究java的jar包是分层,在不同的环境下服务器jar包 tomcat/lib项目jar包 ...原创 2018-09-24 12:46:37 · 1213 阅读 · 0 评论 -
The valid characters are defined in RFC 7230 and RFC 3986
报错信息信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.java.lang.IllegalArgumentException: Invalid character found in the r...原创 2018-09-17 14:16:15 · 556 阅读 · 0 评论 -
Xdebug 端口之迷 vscdoe 极简配置Xdebug
vscode,sublime, vim,phpstorm 配置xdebug,一般流程1.下载扩展相应版本debug扩展 方法:复制phpinfo()输出的页面信息,粘贴到xdebug 官网的页面指引表单域,提交,得到相关的下载项,下载。2.配置php.ini文件 扩展修改,开启调试配置 默认9000端口与配置mysql,pdo扩展一致3.修改ide工具对应的配置项,包括ide所使用相应的php解...原创 2018-05-16 18:46:14 · 1769 阅读 · 0 评论 -
Method Tymon\JWTAuth\Commands\JWTGenerateCommand::handle() does not exist
laravel5.5 使用jwt,生成key,报如下错D:\laragon323\www\lar55>php artisan jwt:generateIn BoundMethod.php line 135: Method Tymon\JWTAuth\Commands\JWTGenerateCommand::handle() does not exist原因分析:在5.5中,调用句...原创 2018-05-25 15:57:22 · 521 阅读 · 0 评论 -
adMethodCallException: This cache store does not support tagging.
使用laravel时报错如下:adMethodCallException: This cache store does not support tagging.查询相关资料发现:Cache tags are not supported when using the file or database cache drivers. The Entrust package probably uses t...翻译 2018-05-15 09:43:34 · 468 阅读 · 0 评论 -
Module parse failed: Unexpected token (2:0) You may need an appropriate loader to handle this file
最近laravel5.5项目时,发现 npm run watch 后报如下错误Module parse failed: Unexpected token (2:0) You may need an appropriate loader to handle this file字面意思;loader 加载器出了问题,导致模块加载失败。进而关注webpack相应的loader报错信息,发现一切...原创 2018-05-25 11:45:18 · 68752 阅读 · 6 评论 -
TokenMismatchException in VerifyCsrfToken.php
在做laravel项目时,报如下错误TokenMismatchException in VerifyCsrfToken.php line 53:in VerifyCsrfToken.php line 53at VerifyCsrfToken->handle(object(Request), object(Closure))at call_user_func_array(array(objec...原创 2018-05-21 10:36:34 · 494 阅读 · 0 评论 -
const’ is available in ES6 (use ‘esversion: 6’) 问题
在用vue写前端时,会有诸如警告const’ is available in ES6 (use ‘esversion: 6’) 在报错文件头部加上如下,即可/*jshint esversion: 6 */原创 2018-04-08 15:50:13 · 8357 阅读 · 0 评论 -
'/' connot be read: [Errno 13] Permission denied
问题描述:Error accessing /'/' connot be read: [Errno 13] Permission denied: 'D:\\code-base\\python\\py27-example\\python_webserver/'j记下,open打开的是目录而非文件。原创 2018-03-31 12:41:35 · 307 阅读 · 0 评论 -
VirtualBox COM对象获取失败 RC: E_NOINTERFACE (0x80004002)
问题描述:尝试解决之前先 在virtualBox程序图标上鼠标-->“右键->属性->兼容性: 勾选兼容模式运行”,“特权等级:勾选以管理员身份运行此程序”, Failed to instantiate CLSID_VirtualBox w/ IVirtualBox, but CLSID_VirtualBox w/ IUnknown works.PSD...转载 2018-03-30 13:30:02 · 7008 阅读 · 0 评论 -
Node Sass could not find a binding for your current environment:
前端代码编译npm run dev报错如下 Node Sass could not find a binding for your current environment::Windows 64-bit with Node.js 4.x Found bindings for the following environment: 查阅相关资源,如此这般便可解决np...原创 2018-06-04 18:37:10 · 2254 阅读 · 0 评论 -
Expected indentation of 8 spaces but found 6
使用ESlint进行代码提示,经常报如下提示: ✘ http://eslint.org/docs/rules/key-spacing Missing space before value for key 'variables' src\components\Admin\LogIn.vue:45:19 variables:{ ^...原创 2018-05-28 20:51:55 · 16711 阅读 · 2 评论 -
bug Unable to boot ApiServiceProvider, configure an API domain or prefix.
laravel5.5装了个dingo/api,然后感觉整个人都不好,看着挺吓人的报错 RuntimeException Unable to boot ApiServiceProvider, configure an API domain or prefix.详情报错如下/home/vagrant/code/larbbs/vendor/dingo/api/src/Provid...原创 2018-07-06 16:32:02 · 2399 阅读 · 0 评论 -
array_combine(): Both parameters should have an equal number of elements
array_combine(): Both parameters should have an equal number of elements查看了一下手册array array_combine ( array $keys , array $values )Parameterskeys Array of keys to be used. Illegal values ...原创 2018-07-09 15:32:27 · 5381 阅读 · 0 评论 -
SyntaxError: missing : after property id
报错 SyntaxError: missing : after property id 当使用对象初始化语法创建对象的时候,需要使用半角冒号 (:) 将属性键与属性值隔开。var obj = { propertyKey: 'value' };...原创 2018-06-19 13:20:57 · 9354 阅读 · 2 评论 -
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL
laravel 进行单元测试报如下错 vendor\bin\phpunit --filter a_thread_belongs_to_a_channelPHPUnit 5.7.27 by Sebastian Bergmann and contributors.E ...原创 2018-06-08 11:15:34 · 2663 阅读 · 0 评论 -
could not find driver
laravel项目测试报错如下λ vendor\bin\phpunitPHPUnit 5.7.27 by Sebastian Bergmann and contributors..E. 3 / 3 (100%)Time: 3.94 seconds, Me...原创 2018-06-07 10:39:05 · 1596 阅读 · 0 评论 -
refusing to merge unrelated histories
使用git合并两个不同项目时报如下错$ git pull https://gitee.com/pardon110/Laravel_Vue_GraphQL.git masterFrom https://gitee.com/pardon110/Laravel_Vue_GraphQL * branch master -> FETCH_HEADfatal: re...原创 2018-05-30 14:31:53 · 420 阅读 · 0 评论 -
invalid_client passport 授权码获取出错
在使用passport进行授权码获取时老报如下错误 error “invalid_client” message “Client authentication failed”先后比对过client_id 确定无误,但还是会报错,百思不得其解。后来才发现是曲解了报错信息 invalid_client 指的是提交的字段信息与数据库中比对的信息有误,才算是正确。 redirec...原创 2018-06-06 09:57:15 · 15513 阅读 · 2 评论 -
Class 'Faker\Factory' not found
在用laravel 开发项目时,新建分支填充数据库后报如下错Class 'Faker\Factory' not found检查:命名空间没问题,重新生成自动加载文件,仍然报如上所错 install照旧检查composer.json文件 中dev依赖 发现没有 fzaninotto/faker 组件加上,composer update 重新下载了一下该组件包此时想起,用git建分支时,只锁定了....原创 2018-05-29 17:07:07 · 1747 阅读 · 0 评论 -
SyntaxError: unterminated string literal
信息SyntaxError: unterminated string literal 哪里出错了?某处 js 解析字符串出错。字符串必须使用单引号或双引号来正确的关闭。在 Javascript 中使用单引号的字符和双引号的字符串是没有区别的。字符串用转义字符不是单引号就是双引。为解决这个错误,检查一下:你字符串的引号是否成对。你是否正确使用了转义序列你的字符串是否在多行中解析正常。在javas...转载 2018-03-05 17:18:53 · 32408 阅读 · 0 评论