今天又学到一种修改bug的方法  : let newpwd = crypto.createHash('md5').update(req.body.upwd).digest('hex'); 在点击按钮加载登录方法的时候,加密后无法登陆,并报错,找了好久没有找到,百度的方法对我也完全不适用当然也怪自己"盲僧",把自己知道报错的地方迅速找到并注释,然后又目的性的找到自己的错误地方 我这次的错误是后台使用的post方法接收数据但是在代码中却用到query接收前端发来的数据,应该使用body 社…
使用axios处理请求时,出现的问题解决 当url是远程接口链接时,会报404的错误: Uncaught (in promise) Error: Request failed with status code 404 解决方法: var instance = axios.create({ headers: {'content-type': 'application/x-www-form-urlencoded'} }); instance.post(`url`, params).then(res…
错误Error: Request failed with status code 500 ,调试前端没问题,后端也没问题,还报错"连接超时" 在Network中找到错误Self referencing loop detected for property 'xxxx' with type 当我们后端调试一步一步调试也没发现错误在哪里,但是跳转到前端就报错了.前端没有接收到后端传过来的数据,总结了一下: **前端接收问题**前端就是接收**字段名**以及**类型**问题 比如:nAmE,…
出现原因: 使用了不存在的对象 数组越界了 用 delete 释放未分配的内存空间,或者超过一次释放同个内存 比如: 顺序不能颠倒 正确: ui->setupUi(this); ui->tableWidget->setColumnWidth(0, 100); 错误: ui->tableWidget->setColumnWidth(0, 100); ui->setupUi(this);…
ERROR Error: Uncaught (in promise): Error: StaticInjectorError[Geolocation]: StaticInjectorError[Geolocation]: NullInjectorError: No provider for Geolocation!Error: StaticInjectorError[Geolocation]: StaticInjectorError[Geolocation]: NullInjectorError…
<audio id="play" controls="controls" loop="loop"> <source src="horse.mp3" type="audio/mpeg"> </audio>浏览器出现:Uncaught (in promise) DOMException: play() failed because the user didn't intera…
映射一个volume到多个SDC的时候报错如下: Error: MDM failed command.  Status: Only a single SDC may be mapped to this volume at a time 从上图可以看到创建volume, 映射volume都成功了, 再映射一个的时候报了错. 暂时的解决方法如下: scli --unmap_volume_from_sdc --volume_name VMOS --sdc_ip 172.16.3.122scli --m…
最近在开发一个网站时,有个需要是 如果有新预警信息要在网页中播放提示音.页面打开会请求是否有新信息,有则播放提示音.在Chrome的最新浏览器中,播放会报错,控制台显示Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.搜索发现Chrome 66为了避免标签产生随机噪音禁止没有交互前使用js进行播放.最后解决方案为 在chrome地址栏…
笔者用C#在服务器端写了一个Webservice,然后再Android客户端通过soap2调用webservice的函数,遇到了HTTP request failed, HTTP status: 302的问题,在网上也无法找到答案,后来偶然发现每次我在浏览器地址输入webservice的访问地址,浏览器都会自动在url后面添加上?AspxAutoDetectCookieSupport=1,在网上查找关于302的问题是因为资源或网址重定向到另一个地方了,也就是只要在url后面添加上?AspxAut…
源映射错误:request failed with status 404:源映射错误:request failed with status 404…